commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
By defining a function "gh" as shown here, it saves me typing "history | grep" every time I need to search my shell history because now I only have to type "gh".
A nifty time saver :-)
You can also add the "gh" function definition to your .bashrc so it is defined each time you login.
(updated 2015_01_29: changed from hg to gh to avoid clash with that other hg command.
mnemonic: gh = grep history)
There are 3 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.