Disable cowsay's wrapping when using it to show a quote

This commit is contained in:
Danielle McLean 2016-10-23 15:03:53 +11:00
parent f43d8a36fa
commit 30afa33f4e

View file

@ -1,4 +1,5 @@
#! zsh #! zsh
(( $+commands[fortune] )) || return (( $+commands[fortune] )) || return
for say in ponysay cowsay cat; (( $+commands[$say] )) && break for say in ponysay cowsay cat; (( $+commands[$say] )) && break
[[ $say = cowsay ]] && say=(cowsay -n)
fortune $XDG_CACHE_HOME/sav-quotes/quotes | $say fortune $XDG_CACHE_HOME/sav-quotes/quotes | $say