Compare commits

...

2 Commits

Author SHA1 Message Date
Fabian Homborg 38dac9d7f8 fish_greeting: Overdo
Instead of picking just one random fish emoji, pick three from a
larger set and add it to the existing greeting.
2021-04-01 23:15:19 +02:00
Jonathan Allard 5f3eed0a34
fish_greeting: Change default to a random fish emoji 2021-04-01 15:29:52 -04:00
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,12 @@ function fish_greeting
set -l line1 (_ 'Welcome to fish, the friendly interactive shell')
set -l line2 \n(printf (_ 'Type %shelp%s for instructions on how to use fish') (set_color green) (set_color normal))
set -g fish_greeting "$line1$line2"
if string match -qir '.*\.utf-?8' -- $LANG $LC_CTYPE
set -l fishes 🐟 🐠 🐡 🐳 🐢 🐡 🦀 🐸 🦞 🦈 🦭 🐙 🦑
set -l f (random choice $fishes; random choice $fishes; random choice $fishes)
set fish_greeting "$fish_greeting"\n"$f"
end
end
if set -q fish_private_mode