Skip to content

Instantly share code, notes, and snippets.

@dragonauta
Created April 12, 2015 03:02
Show Gist options
  • Save dragonauta/b67cfe509f0f25435657 to your computer and use it in GitHub Desktop.
Save dragonauta/b67cfe509f0f25435657 to your computer and use it in GitHub Desktop.
RTFM function to find information about commands
function rtfm() { help $@ || $@ -h || $@ --help || man $@ || firefox -U "http://www.google.com/search?q=$@"; }
@evverx
Copy link

evverx commented Jun 19, 2015

Hi!
There is a problem with rtfm: rtfm tr displays help for the trap command.
An alternative: https://gist.github.com/evverx/991979b28046d9ee5ab2

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