Better ack pager
Ack is an awesome tool to find stuff in text files, specially code. But I don't like the way it paginates the results. So, I'm using the following bash alias to make it work like the default git pager setup:
alias ack='ack --pager="less -FRSX"'
You can also add the parameter to your .ackrc file, like this:
--pager=less -FRSX
Notice that you can't use quotes in the .ackrc file.
Written by Lincoln de Sousa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ack
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#