diff options
author | nXqd <nxqd.inbox@gmail.com> | 2012-06-14 08:06:36 +0300 |
---|---|---|
committer | Phil Eichinger <phil@zankapfel.net> | 2014-03-25 16:47:57 +0100 |
commit | d2a765e12d8638354b3cdc71ca535964fc379599 (patch) | |
tree | 97dcd6e63a236553563cef53c28c3152e5b25f6d /lib | |
parent | d1323edb499d5f9fbe7641bcab402229ad773195 (diff) | |
download | zsh-d2a765e12d8638354b3cdc71ca535964fc379599.tar.gz zsh-d2a765e12d8638354b3cdc71ca535964fc379599.tar.bz2 zsh-d2a765e12d8638354b3cdc71ca535964fc379599.zip |
avoid VCS folders
Diffstat (limited to 'lib')
-rw-r--r-- | lib/grep.zsh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/grep.zsh b/lib/grep.zsh index 93c4270b6..25345bd06 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -2,5 +2,11 @@ # Color grep results # Examples: http://rubyurl.com/ZXv # -export GREP_OPTIONS='--color=auto' + +# avoid VCS folders +GREP_OPTIONS= +for PATTERN in .cvs .git .hg .svn; do + GREP_OPTIONS+="--exclude-dir=$PATTERN " +done +export GREP_OPTIONS+='--color=auto ' export GREP_COLOR='1;32'
\ No newline at end of file |