How to make ack include .conf files?
Asked Answered
C

1

11

How to configure ack (sometimes distributed as ack-grep) to always include .conf files into search?

Crenel answered 3/3, 2011 at 11:52 Comment(0)
R
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
Rosana answered 9/3, 2011 at 15:29 Comment(3)
If you're using -a, then you might as well be using grep.Sillabub
@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 grepRosana
Nowadays I always type ack-grep -ai <searchstring> because I have too many servers to configure :)Crenel

© 2022 - 2024 — McMap. All rights reserved.