Adding file type to ack permanently
- by Martin Tóth
I've recently learned how to let ack support more filetypes (adding the following to .ackrc):
--type-add
latte=.latte
Unfortunately, that produces an info line on every ack search I use, even ones with 0 results.
$ ack --latte dump
ack: --type-add: Type "latte" does not exist, creating with ".latte" ...
Is there a way to make this a more permanent addition? (i.e. get rid of this info line) This looks to me like it's adding this new type on every ack call. Is it a problem with my installation of ack?
I'm on Mac OS X 10.5.8 with ack 1.92 (Running under Perl 5.10.1)