mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fix error when ack-grep is not found
The `which` command may send output to stderr when the resulting path is not found (i.e. an error is encountered). That error output must be discarded.
This commit is contained in:
parent
920ab071cb
commit
1a79b08644
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ alias _='sudo'
|
|||
alias please='sudo'
|
||||
|
||||
## more intelligent acking for ubuntu users
|
||||
if which ack-grep > /dev/null;
|
||||
if which ack-grep > /dev/null 2>&1;
|
||||
then
|
||||
alias afind='ack-grep -il'
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue