mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
c2f6c6c1d2
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
13 lines
231 B
Fish
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
|
|
|