Last Updated: June 13, 2021
·
2.404K
· clarete

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.