add context of ± 3 lines to grep

This commit is contained in:
Alexander Terry 2017-02-16 23:14:21 -09:00
parent d2725d44fc
commit 9aa16d3b5d

View File

@ -18,6 +18,9 @@ if grep-flag-available --exclude-dir=.cvs; then
elif grep-flag-available --exclude=.cvs; then elif grep-flag-available --exclude=.cvs; then
GREP_OPTIONS+=" --exclude=$VCS_FOLDERS" GREP_OPTIONS+=" --exclude=$VCS_FOLDERS"
fi fi
if grep-flag-available '-C 3'; then
GREP_OPTIONS+=" -C 3"
fi
# export grep settings # export grep settings
alias grep="grep $GREP_OPTIONS" alias grep="grep $GREP_OPTIONS"