Skip to content

Instantly share code, notes, and snippets.

@freak4pc freak4pc/.zshrc
Created May 20, 2015

Embed
What would you like to do?
History that accepts a grep filter inline as an argument
function __history {
[ -n "$1" ] && history 1 | grep -i $1 || history 1
}
alias history='__history'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.