fish-shell/share/functions/grep.fish
David Adam 190cac07a3 grep.fish: don't set GREP_COLOR
grep will fall back to the default colors.

Closes #1316.
2014-11-25 08:48:16 +08:00

10 lines
162 B
Fish

#
# Match colors for grep, if supported
#
if command grep --color=auto --help 1>/dev/null 2>/dev/null
function grep
command grep --color=auto $argv
end
end