diff --git a/share/functions/grep.fish b/share/functions/grep.fish index b0dc9586c..cd7c31baf 100644 --- a/share/functions/grep.fish +++ b/share/functions/grep.fish @@ -6,8 +6,8 @@ if command grep --color=auto --help 1>/dev/null 2>/dev/null if not set -q GREP_COLOR set -gx GREP_COLOR '97;45' end - if not set -q GREP_OPTIONS - set -gx GREP_OPTIONS --color=auto + function grep + command grep --color=auto $argv end end