Skip to content

Instantly share code, notes, and snippets.

@virullius
Created May 2, 2017 12:44
Show Gist options
  • Save virullius/53afa75d4fada304df9c59ae3988af85 to your computer and use it in GitHub Desktop.
Save virullius/53afa75d4fada304df9c59ae3988af85 to your computer and use it in GitHub Desktop.
Random tool tip of any executable on your PATH (GNU/Linux)
echo ">> Tooltip: $(whatis $(ls $(echo $PATH | tr : ' ') 2>/dev/null | shuf -n 1))"
@virullius
Copy link
Author

virullius commented May 2, 2017

There are a few of these around, the idea is not mine, but they all seem to make assumptions about the paths. This one uses you PATH environment variable. Paste it into your ~/.profile, or equivalent, for a tip every time to start a new shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment