Skip to content

Instantly share code, notes, and snippets.

@theycallmeswift
Created February 16, 2013 21:12
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 theycallmeswift/4968761 to your computer and use it in GitHub Desktop.
Save theycallmeswift/4968761 to your computer and use it in GitHub Desktop.
Get a random fact from the command line
alias fact="echo -ne '\033[36m'; curl -s randomfunfacts.com | grep '<i>' | sed 's/.*<i>\(.*\)<\/i>.*/\1/'; echo -ne '\033[0m';"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment