fish-shell/share/functions/grep.fish
axel c2f6c6c1d2 Do gettext translation of descriptions just-in-time internally in fish
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
2006-03-02 02:53:47 +10:00

13 lines
231 B
Fish

#
# Match colors for grep, if supported
#
if 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
end
end