mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-17 02:01:30 +02:00
Ignore .tox folder in grep
This commit is contained in:
@ -11,7 +11,7 @@ if grep-flag-available --color=auto; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ignore these folders (if the necessary grep flags are available)
|
# ignore these folders (if the necessary grep flags are available)
|
||||||
EXC_FOLDERS="{.bzr,CVS,.git,.hg,.svn,.idea}"
|
EXC_FOLDERS="{.bzr,CVS,.git,.hg,.svn,.idea,.tox}"
|
||||||
|
|
||||||
if grep-flag-available --exclude-dir=.cvs; then
|
if grep-flag-available --exclude-dir=.cvs; then
|
||||||
GREP_OPTIONS+=" --exclude-dir=$EXC_FOLDERS"
|
GREP_OPTIONS+=" --exclude-dir=$EXC_FOLDERS"
|
||||||
@ -25,6 +25,5 @@ alias egrep="egrep $GREP_OPTIONS"
|
|||||||
alias fgrep="fgrep $GREP_OPTIONS"
|
alias fgrep="fgrep $GREP_OPTIONS"
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
unset GREP_OPTIONS
|
unset GREP_OPTIONS EXC_FOLDERS
|
||||||
unset EXC_FOLDERS
|
|
||||||
unfunction grep-flag-available
|
unfunction grep-flag-available
|
||||||
|
Reference in New Issue
Block a user