How to configure ack (sometimes distributed as ack-grep) to always include .conf files into search?
Asked
Active
Viewed 2,113 times
1 Answers
13
Add the following to your .ackrc
file:
--type-set=conf=.conf
Personally, I have one line in my .ackrc
, which tells it to search all files:
-a

Adam Batkin
- 51,711
- 9
- 123
- 115
-
1If you're using -a, then you might as well be using grep. – Andy Lester Apr 05 '11 at 20:10
-
4@Andy `-a` still skips certain (almost always unwanted) directories and a few file types. And I still find ack's default output mode to be more pleasing than grep – Adam Batkin Apr 06 '11 at 12:03
-
Nowadays I always type ack-grep -ai
because I have too many servers to configure :) – Henno Mar 19 '12 at 21:22