Adding file type to ack permanently

Posted by Martin Tóth on Super User See other posts from Super User or by Martin Tóth
Published on 2011-02-28T13:10:16Z Indexed on 2011/02/28 15:27 UTC
Read the original article Hit count: 290

Filed under:
|

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)

© Super User or respective owner

Related posts about file-types

Related posts about ack