From 2d9df4468f5650d0d16cc789c96d828fb0dff4aa Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Sat, 3 Oct 2015 18:39:41 -0700 Subject: [PATCH] Fix 'ack-grep' bug for non-ubuntu users Redirect STDERR along with STDOUT when looking for ack-grep --- lib/misc.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/misc.zsh b/lib/misc.zsh index 223d61509..8ff076e77 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -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; then alias afind='ack-grep -il' else