This commit is contained in:
Toan Nguyen
2017-03-20 20:21:32 +07:00
parent 36e0f88e34
commit 85ae3414c6
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -7,16 +7,16 @@ grep_flag_available() {
GREP_OPTIONS=""
# color grep results
if grep-flag-available --color=auto; then
if grep_flag_available --color=auto; then
GREP_OPTIONS+=( " --color=auto" )
fi
# ignore VCS folders (if the necessary grep flags are available)
VCS_FOLDERS="{.bzr,CVS,.git,.hg,.svn}"
if grep-flag-available --exclude-dir=.cvs; then
if grep_flag_available --exclude-dir=.cvs; then
GREP_OPTIONS+=( " --exclude-dir=$VCS_FOLDERS" )
elif grep-flag-available --exclude=.cvs; then
elif grep_flag_available --exclude=.cvs; then
GREP_OPTIONS+=( " --exclude=$VCS_FOLDERS" )
fi
+1 -1
View File
@@ -23,4 +23,4 @@ if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
fi
# recognize comments
shopt interactive_comments
shopt -s interactive_comments