From 59cb3a01fba206d0e898873eb949ed3223826d68 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 26 Dec 2016 21:11:05 -0800 Subject: [PATCH] Update ack for newer packages. --- dotfiles/aliases | 3 --- dotfiles/zshrc | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dotfiles/aliases b/dotfiles/aliases index 15d377b..76c7842 100644 --- a/dotfiles/aliases +++ b/dotfiles/aliases @@ -25,9 +25,6 @@ alias mdcode="sed 's/^/ /'" # Intel format plz alias objdump="command objdump -M intel" -# ACK -alias ack="ack-grep" - # Launch chrome for burp alias chrome-for-burp="/usr/bin/google-chrome --ignore-certificate-errors --user-data-dir=${HOME}/.chrome-for-burp --proxy-server=127.0.0.1:8080 >/dev/null 2>&1 &" diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 839daf0..b1f4c9d 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -55,5 +55,10 @@ if [[ $- == *i* ]] ; then for file in $HOME/.zshrc.d/* ; do source "$file" ; done fi +# In case ack is named ack-grep +if [ -x /usr/bin/ack-grep ] ; then + alias ack='/usr/bin/ack-grep' +fi + # Load any local settings if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi