important aliases, refactorings, all sorts

This commit is contained in:
Peter Kingswell 2021-07-15 10:36:48 -04:00
commit e278d94f6f
9 changed files with 76 additions and 38 deletions

View file

@ -16,9 +16,9 @@ else
# isn't available, --color won't be either (they were released at the same
# time (v2.5): https://git.savannah.gnu.org/cgit/grep.git/tree/NEWS?id=1236f007
if grep-flags-available --color=auto --exclude-dir=.cvs; then
GREP_OPTIONS="--color=always --exclude-dir=$EXC_FOLDERS"
GREP_OPTIONS="--exclude-dir=$EXC_FOLDERS"
elif grep-flags-available --color=auto --exclude=.cvs; then
GREP_OPTIONS="--color=always --exclude=$EXC_FOLDERS"
GREP_OPTIONS="--exclude=$EXC_FOLDERS"
fi
if [[ -n "$GREP_OPTIONS" ]]; then