mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
c2f6c6c1d2
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
14 lines
231 B
Fish
14 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
|
|
|