mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:23:34 +08:00
9e304fa734
darcs-hash:20060712142242-ac50b-3966a0e96a32facc8bc1164d6d0837fc551e4733.gz
14 lines
239 B
Fish
14 lines
239 B
Fish
#
|
|
# Match colors for grep, if supported
|
|
#
|
|
|
|
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
|
|
end
|
|
end
|
|
|