2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-30 22:03:29 +00:00
fish-shell/share/functions/grep.fish

13 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