Update .config/fish/functions/fish_greeting.fish

This commit is contained in:
punkfairie 2024-04-21 13:51:00 -07:00
parent 10249acbbc
commit cb687f9047
No known key found for this signature in database
GPG key ID: 1B492EAEA989C054

View file

@ -1,5 +1,19 @@
#!/usr/bin/env fish
function fish_greeting
fortune | cowsay | lolcat
set -f cmd
if command -v fortune &>/dev/null
set -a cmd fortune
end
if command -v cowsay &>/dev/null
set -a cmd cowsay
end
if command -v lolcat &>/dev/null
set -a cmd "lolcat -t"
end
fish -c (string join ' | ' $cmd)
end