diff options
author | Bob Williams <bobwilliams.ii@gmail.com> | 2014-03-22 21:24:52 -0400 |
---|---|---|
committer | Bob Williams <bobwilliams.ii@gmail.com> | 2014-03-22 21:24:52 -0400 |
commit | d70e73294494e68c94879c7bf22f708a3049a9d4 (patch) | |
tree | 696f9a6cb49cab00924942eb5147b99b5fb1798d /lib/grep.zsh | |
parent | 5a586670d73dbbda97d124e33398aabf21597659 (diff) | |
parent | 178b5224e830845e45070ef803fcdb5a3f468dca (diff) | |
download | zsh-d70e73294494e68c94879c7bf22f708a3049a9d4.tar.gz zsh-d70e73294494e68c94879c7bf22f708a3049a9d4.tar.bz2 zsh-d70e73294494e68c94879c7bf22f708a3049a9d4.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/grep.zsh')
-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 |