Created
September 26, 2012 22:34
-
-
Save glyphobet/3791060 to your computer and use it in GitHub Desktop.
find ack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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