Skip to content

Instantly share code, notes, and snippets.

@redraw
Last active August 25, 2018 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redraw/dd43534f3fa9b112c2f016ed9c8c8acc to your computer and use it in GitHub Desktop.
Save redraw/dd43534f3fa9b112c2f016ed9c8c8acc to your computer and use it in GitHub Desktop.
# ...
if (which fortune && which cowsay) &>/dev/null; then
fortune -s | cowsay -f "$(ls /usr/share/cowsay/cows | shuf | head -n1 | cut -d. -f1)"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment