Diff
1diff --git a/lib/grep.zsh b/lib/grep.zsh
2index abc1650a1cca6f117bb1d212a8501d53a06f83a7..886e36a8dee2603c83cde56dcf20512b3e82670a 100644
3--- a/lib/grep.zsh
4+++ b/lib/grep.zsh
5@@ -10,13 +10,13 @@ if grep-flag-available --color=auto; then
6 GREP_OPTIONS+=" --color=auto"
7 fi
8
9-# ignore VCS folders (if the necessary grep flags are available)
10-VCS_FOLDERS="{.bzr,CVS,.git,.hg,.svn}"
11+# ignore these folders (if the necessary grep flags are available)
12+EXC_FOLDERS="{.bzr,CVS,.git,.hg,.svn,.idea}"
13
14 if grep-flag-available --exclude-dir=.cvs; then
15- GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS"
16+ GREP_OPTIONS+=" --exclude-dir=$EXC_FOLDERS"
17 elif grep-flag-available --exclude=.cvs; then
18- GREP_OPTIONS+=" --exclude=$VCS_FOLDERS"
19+ GREP_OPTIONS+=" --exclude=$EXC_FOLDERS"
20 fi
21
22 # export grep settings
23@@ -24,5 +24,5 @@ alias grep="grep $GREP_OPTIONS"
24
25 # clean up
26 unset GREP_OPTIONS
27-unset VCS_FOLDERS
28+unset EXC_FOLDERS
29 unfunction grep-flag-available