Skip to content

Instantly share code, notes, and snippets.

@dbuscombe-usgs
Last active March 30, 2021 16:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbuscombe-usgs/6084687 to your computer and use it in GitHub Desktop.
Save dbuscombe-usgs/6084687 to your computer and use it in GitHub Desktop.
How to start a BASH script (flip a coin and use cowsay)
# flip a coin
FLIP=$(($(($RANDOM%10))%2))
# if heads, use cowsay to present your splash
if [ $FLIP -eq 1 ]
then
# start with some wisdom
fortune -s | cowsay -n | zenity --text-info --title="Your message here" --width 500 --height 500
else
# or start with some other msg
figlet DAN ROCKS | zenity --text-info --title="Your message here" --width 600 --height 200
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment