Loading .shell/bin/grep-auto-exclude +2 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ set -eu VCS_DIRS='.bzr .cvs .git .hg .svn' TOOL_DIRS='.*_cache' type which >/dev/null 2>&1 || which() ( IFS=: Loading @@ -28,7 +29,7 @@ case "$1" in *) CMD=`which grep` ;; esac for dir in $VCS_DIRS ${GREP_EXCLUDE_DIRS-}; do for dir in $VCS_DIRS $TOOL_DIRS ${GREP_EXCLUDE_DIRS-}; do set -- --exclude-dir="$dir" "$@" done Loading Loading
.shell/bin/grep-auto-exclude +2 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ set -eu VCS_DIRS='.bzr .cvs .git .hg .svn' TOOL_DIRS='.*_cache' type which >/dev/null 2>&1 || which() ( IFS=: Loading @@ -28,7 +29,7 @@ case "$1" in *) CMD=`which grep` ;; esac for dir in $VCS_DIRS ${GREP_EXCLUDE_DIRS-}; do for dir in $VCS_DIRS $TOOL_DIRS ${GREP_EXCLUDE_DIRS-}; do set -- --exclude-dir="$dir" "$@" done Loading