Update .config/fish/functions/fish_greeting.fish
This commit is contained in:
parent
10249acbbc
commit
cb687f9047
1 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue