How to configure ack (sometimes distributed as ack-grep) to always include .conf files into search?
DESCRIPTION. ack is designed as an alternative to grep for programmers. ack searches the named input files or directories for lines containing a match to the given PATTERN. By default, ack prints the matching lines. If no FILE or DIRECTORY is given, the current directory will be searched.
Description. Ack is designed as a replacement for 99% of the uses of grep. Ack searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN . By default, ack prints the matching lines.
The best way to open an ACK file is to simply double-click it and let the default assoisated application open the file. If you are unable to open the file this way, it may be because you do not have the correct application associated with the extension to view or edit the ACK file.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With