mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 21:53:09 +08:00
10 lines
156 B
Fish
10 lines
156 B
Fish
#
|
|
# Match colors for grep, if supported
|
|
#
|
|
|
|
if echo | command grep --color=auto "" >/dev/null 2>&1
|
|
function grep
|
|
command grep --color=auto $argv
|
|
end
|
|
end
|