5 ms·
I always install it by downloading standalone version from http://betterthangrep.com/ http://betterthangrep.com/ There is a command on the homepage you can copy
by selectnull 15y ago
I always install it by downloading standalone version from http://betterthangrep.com/ http://betterthangrep.com/ There is a command on the homepage you can copy paste to shell and execute.
Ack is simply too often used and I don't want to type ack-grep all the time.
- pyre 15y ago"man alias" ?
- sixtofour 15y ago<nit> $ man alias No manual entry for alias $ man bash ALIASES Aliases allow a string to be substituted for a word when it is used as the first word of a simple command. </nit> alias is not a standalone, it's part of the shell (in bash at least).
- selectnull 15y agoAlias (though not 'man alias' :) ) could work. But I prefer my way (on server) because I have one thing less to worry about, namely putting 'alias ack=ack-grep' to .bash_aliases. Yeah, it's quick and dirty I guess...
- __david__ 15y agosudo dpkg-divert --local --divert /usr/bin/ack --rename --add /usr/bin/ack-grep That way you still get the benefits of the packaging system and you don't have to alias or create a /usr/local/bin symlink.