mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
Try to just see if grep is happy with --color=auto, or not, as the --help exit status varies in BSD vs. GNU.
This commit is contained in:
parent
947f659f96
commit
613739ba07
1 changed files with 1 additions and 2 deletions
|
@ -2,9 +2,8 @@
|
||||||
# Match colors for grep, if supported
|
# Match colors for grep, if supported
|
||||||
#
|
#
|
||||||
|
|
||||||
if command grep --color=auto --help 1>/dev/null 2>/dev/null
|
if echo | command grep --color=auto "" >/dev/null 2>&1
|
||||||
function grep
|
function grep
|
||||||
command grep --color=auto $argv
|
command grep --color=auto $argv
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue