mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 05:03:46 +08:00
190cac07a3
grep will fall back to the default colors. Closes #1316.
11 lines
162 B
Fish
11 lines
162 B
Fish
#
|
|
# Match colors for grep, if supported
|
|
#
|
|
|
|
if command grep --color=auto --help 1>/dev/null 2>/dev/null
|
|
function grep
|
|
command grep --color=auto $argv
|
|
end
|
|
end
|
|
|