Ignoring a directory using ack's .ackrc
Asked Answered
M

1

77

I'm not sure what it's for, but the code I'm working on has a bunch of folders called "save.d," it looks like they're used for some sort of version control (we also have .svn folders).

How can I update my .ackrc file to ignore those directories by default?

My .ackrc is currently

--type-set=inc=.inc
--ignore-dir=pear
--type-set=tpl=.tpl

Our folder structure can look like:

program/parsers/save.d
program/modules/save.d
Mikelmikell answered 20/9, 2011 at 17:54 Comment(0)
M
97

Adding another line --ignore-dir=save.d did the trick

Mikelmikell answered 21/9, 2011 at 16:1 Comment(1)
Also note that you can add that to the command line whenever necessary, or ACK_OPTIONS environment variable. Your ackrc is nothing but command line switches.Currish

© 2022 - 2024 — McMap. All rights reserved.