add context of ± 3 lines to grep
This commit is contained in:
parent
d2725d44fc
commit
9aa16d3b5d
@ -18,6 +18,9 @@ if grep-flag-available --exclude-dir=.cvs; then
|
||||
elif grep-flag-available --exclude=.cvs; then
|
||||
GREP_OPTIONS+=" --exclude=$VCS_FOLDERS"
|
||||
fi
|
||||
if grep-flag-available '-C 3'; then
|
||||
GREP_OPTIONS+=" -C 3"
|
||||
fi
|
||||
|
||||
# export grep settings
|
||||
alias grep="grep $GREP_OPTIONS"
|
||||
|
Loading…
Reference in New Issue
Block a user