2006-02-20 21:02:03 +08:00
|
|
|
#
|
|
|
|
# Match colors for grep, if supported
|
|
|
|
#
|
|
|
|
|
2016-02-21 02:26:50 +08:00
|
|
|
if echo | command grep --color=auto "" >/dev/null 2>&1
|
2014-11-25 08:47:30 +08:00
|
|
|
function grep
|
|
|
|
command grep --color=auto $argv
|
2006-02-20 21:02:03 +08:00
|
|
|
end
|
|
|
|
end
|