Skip to content

Instantly share code, notes, and snippets.

@glyphobet
Created September 26, 2012 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glyphobet/3791060 to your computer and use it in GitHub Desktop.
Save glyphobet/3791060 to your computer and use it in GitHub Desktop.
find ack
# Find ack on the system (even if it's been installed as ack-grep (linux) or ack-5.12 (MacPorts) and set up aliases
if [ "`compgen -c ack`" ]; then
ACK=`compgen -c ack | head -n 1`
alias ack=${ACK}
alias ackp="${ACK} --pager=less\ -R"
fi
# Note: this is not idempotent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment