From: Frank Terbeck Date: Wed, 1 Feb 2012 20:06:27 +0000 (+0100) Subject: Enable --color=auto for grep in FreeBSD X-Git-Tag: v0.6.0~11 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=e0920bfe029d20450c1f728ef30bcec46eadf26d Enable --color=auto for grep in FreeBSD Reported by ChiCuong HA again. Thanks. Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 30f1550..ec93bdf 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -339,7 +339,8 @@ if ls --help 2> /dev/null | grep -q GNU; then elif [[ $OSTYPE == freebsd* ]]; then ls_options=( -G ) fi -if grep --help 2> /dev/null | grep -q GNU; then +if grep --help 2> /dev/null | grep -q GNU || \ + [[ $OSTYPE == freebsd* ]]; then grep_options=( --color=auto ) fi