Update .config/fish/functions/fish_greeting.fish
This commit is contained in:
parent
ee764f2346
commit
c7978c9fe3
1 changed files with 16 additions and 14 deletions
|
@ -1,19 +1,21 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
function fish_greeting
|
if status --is-interactive
|
||||||
set -f cmd
|
function fish_greeting
|
||||||
|
set -f cmd
|
||||||
|
|
||||||
if command -v fortune &>/dev/null
|
if command -v fortune &>/dev/null
|
||||||
set -a cmd fortune
|
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
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue