From d48fee89aa3351b22f2caea277253eb989818e1e Mon Sep 17 00:00:00 2001 From: steffen Date: Sat, 24 Jan 2026 09:38:09 +0000 Subject: [PATCH] Revert "Add seasonal emoji accents" This reverts commit fbd5fc40e28c89d6ba7958e83d74336d39447d01. --- dotfiles/ps1/ps1.sh | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/dotfiles/ps1/ps1.sh b/dotfiles/ps1/ps1.sh index d042380..0ca9140 100644 --- a/dotfiles/ps1/ps1.sh +++ b/dotfiles/ps1/ps1.sh @@ -37,37 +37,19 @@ _ps1_has_nf() { return 1 } -# Time-based emoji with seasonal accents (Europe/Oslo) +# Time-based emoji (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)) - 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" + if (( h >= 5 && h <= 8 )); then echo "🌅" + elif (( h >= 9 && h <= 10 )); then echo "☕" elif (( h == 11 && m < 30 )); then echo "ðŸĨŠ" - elif (( (h == 11 && m >= 30) || (h >= 12 && h <= 15) )); then echo "$work" + elif (( (h == 11 && m >= 30) || (h >= 12 && h <= 15) )); then echo "ðŸ’ŧ" elif (( h == 16 )); then echo "ðŸē" - elif (( h >= 17 && h <= 22 )); then echo "$evening" - else echo "$night" + elif (( h >= 17 && h <= 22 )); then echo "🌆" + else echo "🌙" fi }