Skip to content

Instantly share code, notes, and snippets.

@lonjil
Created September 22, 2017 18:32
Show Gist options
  • Save lonjil/4f6718a1847c5ba6b9a262ad05ebc4f8 to your computer and use it in GitHub Desktop.
Save lonjil/4f6718a1847c5ba6b9a262ad05ebc4f8 to your computer and use it in GitHub Desktop.
if [ $(tput lines) -gt 40 -a $(tput cols) -gt 160 ]; then
fortune | figlet -w $(($(tput cols) - 7)) -kf slant | \
cowsay -f dragon-and-cow -n | toilet --gay -f term -w $(tput cols);
elif [ $(tput lines) -gt 23 -a $(tput cols) -gt 79 ]; then
fortune | cowsay -f dragon-and-cow -W $(($(tput cols)-5)) | toilet --gay -f term -w $(tput cols);
else
fortune | cowsay | toilet --gay -f term -w $(tput cols);
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment