Adjust ponysay wrap width to make use of available screen space :)

This commit is contained in:
Danielle McLean 2016-10-25 14:54:49 +11:00
parent 288811fefa
commit 8a2fdbb3e8
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

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