ack gem of the day: git style paging in ack

jdavidb on 2009-02-13T20:21:56

"git-style paging" is addictive. After having your interactive results automatically paged whenever needed, you start to get a little critical of your other tools, even old venerable tools that expected pagers to be applied separately by the user if necessary, and even high-quality newer tools like ack.

Turns out ack supports git-style paging. Just add this to your ~/.ackrc:

--pager
more  # or less, if you lean that way

Everybody but me probably already knew this.

Now, if somebody could just tell me how to make git on Windows automatically page like git on Linux does, that would be great, because that's what I was originally googling for...