grep.zsh 272 B

12345678910111213
  1. #
  2. # Color grep results
  3. # Examples: http://rubyurl.com/ZXv
  4. #
  5. # avoid VCS folders
  6. GREP_OPTIONS=
  7. for PATTERN in .cvs .git .hg .svn; do
  8. GREP_OPTIONS+="--exclude-dir=$PATTERN "
  9. done
  10. GREP_OPTIONS+="--color=auto"
  11. export GREP_OPTIONS="$GREP_OPTIONS"
  12. export GREP_COLOR='1;32'