Skip to content

Instantly share code, notes, and snippets.

@virullius
Last active December 21, 2015 20:10
Show Gist options
  • Save virullius/6359746 to your computer and use it in GitHub Desktop.
Save virullius/6359746 to your computer and use it in GitHub Desktop.
BSD compatible random tool tip based on a Linux version from I-don't-know-where. Append to ~/.bashrc
echo "Did you know that:"; whatis $(ls -1 /bin | head -$(echo "$RANDOM % `ls -1 /bin | wc -l`" | bc) | tail -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment