From 4e49c319356487ca9130bccfc0e68a72710fb617 Mon Sep 17 00:00:00 2001 From: zezadas Date: Wed, 26 Nov 2014 19:18:07 +0000 Subject: [PATCH] Fix GREP_OPTIONS warnings --- lib/grep.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/grep.zsh b/lib/grep.zsh index 276fec382..41406a2f4 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -3,7 +3,7 @@ # Examples: http://rubyurl.com/ZXv # -GREP_OPTIONS="--color=auto" +OPTIONS_GREP="--color=auto" # avoid VCS folders (if the necessary grep flags are available) grep-flag-available() { @@ -11,14 +11,14 @@ grep-flag-available() { } if grep-flag-available --exclude-dir=.cvs; then for PATTERN in .cvs .git .hg .svn; do - GREP_OPTIONS+=" --exclude-dir=$PATTERN" + OPTIONS_GREP+=" --exclude-dir=$PATTERN" done elif grep-flag-available --exclude=.cvs; then for PATTERN in .cvs .git .hg .svn; do - GREP_OPTIONS+=" --exclude=$PATTERN" + OPTIONS_GREP+=" --exclude=$PATTERN" done fi unfunction grep-flag-available -export GREP_OPTIONS="$GREP_OPTIONS" +alias grep="grep $OPTIONS_GREP" export GREP_COLOR='1;32'