From e0920bfe029d20450c1f728ef30bcec46eadf26d Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Wed, 1 Feb 2012 21:06:27 +0100 Subject: [PATCH] Enable --color=auto for grep in FreeBSD Reported by ChiCuong HA again. Thanks. Signed-off-by: Frank Terbeck --- etc/zsh/zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.1.4