-
-
Save dragonauta/b67cfe509f0f25435657 to your computer and use it in GitHub Desktop.
RTFM function to find information about commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rtfm() { help $@ || $@ -h || $@ --help || man $@ || firefox -U "http://www.google.com/search?q=$@"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
There is a problem with
rtfm
:rtfm tr
displays help for thetrap
command.An alternative: https://gist.github.com/evverx/991979b28046d9ee5ab2