Skip to content

Instantly share code, notes, and snippets.

@f0ster
Created Jun 11, 2017
Embed
What would you like to do?
handy bash history command
function h() {
if [ -z "$1" ]
then
history
else
history | grep "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment