mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
190cac07a3
grep will fall back to the default colors. Closes #1316.
10 lines
162 B
Fish
10 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
|
|
|