Ignoring a directory using ack's .ackrc

Ack

Ack Problem Overview


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

Ack Solutions


Solution 1 - Ack

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionParris VarneyView Question on Stackoverflow
Solution 1 - AckParris VarneyView Answer on Stackoverflow