mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
add context of ± 3 lines to grep
This commit is contained in:
parent
d2725d44fc
commit
9aa16d3b5d
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue