diff --git a/lib/grep.zsh b/lib/grep.zsh index f36970f32..c7e8bbffc 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -22,5 +22,8 @@ _setup_grep_alias() { # Clean up. unfunction grep-flag-available + + # Run it on first invocation. + command grep $GREP_OPTIONS "$@" } alias grep=_setup_grep_alias