Created
May 27, 2022 11:49
-
-
Save ivanlynch/463b8923b45102b0f0e9065158e9a575 to your computer and use it in GitHub Desktop.
hgrep
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
# PUT THIS COMMAND INTO YOUR ~/.bashrc | |
hgrep () { | |
history | egrep --color=auto --recursive "$@" | egrep --color=auto --recursive -v "hgrep $@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment