Skip to content

Instantly share code, notes, and snippets.

@wigsy
wigsy / gist:5869295
Created June 26, 2013 17:08
ZSH alias for grep'ing the history command easily
# in your .zshrc add:
alias HG='history | grep '
# reload ZSH (using my default location as an example)
. ~/.zshrc
# Now run: ``HG something_of_interest`` and your history is grepped for said interesting something.