mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
grep: run it on first invocation
This commit is contained in:
parent
4cfcf09cef
commit
b88039e0f4
1 changed files with 3 additions and 0 deletions
|
|
@ -22,5 +22,8 @@ _setup_grep_alias() {
|
||||||
|
|
||||||
# Clean up.
|
# Clean up.
|
||||||
unfunction grep-flag-available
|
unfunction grep-flag-available
|
||||||
|
|
||||||
|
# Run it on first invocation.
|
||||||
|
command grep $GREP_OPTIONS "$@"
|
||||||
}
|
}
|
||||||
alias grep=_setup_grep_alias
|
alias grep=_setup_grep_alias
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue