Loading .shell/bin/grep-auto-exclude +3 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ # ~/.shell/bin/grep [grep|fgrep|egrep] [OPTIONS] # set -eu VCS_DIRS='.bzr .cvs .git .hg .svn' type which >/dev/null 2>&1 || which() ( Loading @@ -26,7 +28,7 @@ case "$1" in *) CMD=`which grep` ;; esac for dir in $VCS_DIRS $GREP_EXCLUDE_DIRS; do for dir in $VCS_DIRS ${GREP_EXCLUDE_DIRS-}; do set -- --exclude-dir="$dir" "$@" done Loading Loading
.shell/bin/grep-auto-exclude +3 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ # ~/.shell/bin/grep [grep|fgrep|egrep] [OPTIONS] # set -eu VCS_DIRS='.bzr .cvs .git .hg .svn' type which >/dev/null 2>&1 || which() ( Loading @@ -26,7 +28,7 @@ case "$1" in *) CMD=`which grep` ;; esac for dir in $VCS_DIRS $GREP_EXCLUDE_DIRS; do for dir in $VCS_DIRS ${GREP_EXCLUDE_DIRS-}; do set -- --exclude-dir="$dir" "$@" done Loading