Use prettier Unicode bubbles around ponysay fortunes

This commit is contained in:
Danielle McLean 2016-10-30 10:18:19 +11:00
parent 8a2fdbb3e8
commit 207afb3f62
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -2,5 +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 )))
[[ $say = ponysay ]] && say=(ponysay -W $(( COLUMNS - 1 )) -b unicode)
fortune $XDG_CACHE_HOME/sav-quotes/quotes | $say