I just switch from ubuntu to archlinux and I installed ack-grep via pacman. However what I found is I can’t run $ ack from terminal directy. I have to type $ perl ack , which is a pain…I wonder if anyone hve experienced similar situation and how do you solve it.
Thanks
It depends on the shell you’re using. Probably the simplest thing you can do (assuming
bash) is to create an alias for your desired command, something like:You’ll probably want to place that somewhere in one of your startup scripts, such as
.profile, or.bash_profilein your home directory.If you’re using a different sheel that doesn’t support aliases, you can still resort to providing a script to do the translation for you, such as putting the following
acxfile in your path: