diff --git a/config/zsh/interactive+login/show_fortune b/config/zsh/interactive+login/show_fortune index 25891a8..c31874b 100644 --- a/config/zsh/interactive+login/show_fortune +++ b/config/zsh/interactive+login/show_fortune @@ -1,2 +1,4 @@ #! zsh -fortune $XDG_CACHE_HOME/sav-quotes/quotes | ponysay +(( $+commands[fortune] )) || return +for say in ponysay cowsay cat; (( $+commands[$say] )) && break +fortune $XDG_CACHE_HOME/sav-quotes/quotes | $say