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:
Adam Batkin 2015-10-03 22:36:22 -04:00
commit 1a79b08644

View file

@ -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