From fbd5fc40e28c89d6ba7958e83d74336d39447d01 Mon Sep 17 00:00:00 2001 From: steffen Date: Sat, 24 Jan 2026 09:35:47 +0000 Subject: [PATCH] Add seasonal emoji accents - Keep lunch/dinner fixed and vary other time emojis by season --- dotfiles/ps1/ps1.sh | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/dotfiles/ps1/ps1.sh b/dotfiles/ps1/ps1.sh index 0ca9140..d042380 100644 --- a/dotfiles/ps1/ps1.sh +++ b/dotfiles/ps1/ps1.sh @@ -37,19 +37,37 @@ _ps1_has_nf() { return 1 } -# Time-based emoji (Europe/Oslo) +# Time-based emoji with seasonal accents (Europe/Oslo) _ps1_symbol() { local hh mm h m hh=$(TZ=Europe/Oslo date +%H); mm=$(TZ=Europe/Oslo date +%M) h=$((10#$hh)); m=$((10#$mm)) - if (( h >= 5 && h <= 8 )); then echo "🌅" - elif (( h >= 9 && h <= 10 )); then echo "☕" + local season="${__PS1_SEASON:-winter}" + local sunrise coffee work evening night + + case "$season" in + spring) + sunrise="🌷"; coffee="☕"; work="ðŸŒŋ"; evening="ðŸŒĪ"; night="🌙" + ;; + summer) + sunrise="🌞"; coffee="🧃"; work="ðŸŠī"; evening="🌇"; night="🌙" + ;; + autumn) + sunrise="🍁"; coffee="☕"; work="🍂"; evening="🌆"; night="🌙" + ;; + *) + sunrise="🌅"; coffee="☕"; work="❄ïļ"; evening="🌆"; night="🌙" + ;; + esac + + if (( h >= 5 && h <= 8 )); then echo "$sunrise" + elif (( h >= 9 && h <= 10 )); then echo "$coffee" elif (( h == 11 && m < 30 )); then echo "ðŸĨŠ" - elif (( (h == 11 && m >= 30) || (h >= 12 && h <= 15) )); then echo "ðŸ’ŧ" + elif (( (h == 11 && m >= 30) || (h >= 12 && h <= 15) )); then echo "$work" elif (( h == 16 )); then echo "ðŸē" - elif (( h >= 17 && h <= 22 )); then echo "🌆" - else echo "🌙" + elif (( h >= 17 && h <= 22 )); then echo "$evening" + else echo "$night" fi }