-
-
Save kldkv/c641b3e4ad11670dbf13614e69cbb33a to your computer and use it in GitHub Desktop.
ZSH alias for grep'ing the history command easily
This file contains hidden or 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
# 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment