Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify ignore custom file patterns in .ackrc

Tags:

I have certain CSS files of fileName *-c.css and *-gen.css which I want to ignore from ack-grep searches.

I see that --type-set=TYPENAME=.extension does not accept regex filters like *-c.css, any idea of how to get around this problem ?

like image 587
Ravikiran janardhana Avatar asked Oct 16 '13 21:10

Ravikiran janardhana


1 Answers

I came across ack-grep 2.0 which provides --ignore-file option based on regex pattern as below and it worked after adding it to ~/.ackrc.

--ignore-file=match:-c.js --ignore-file=match:-gen.js --ignore-file=match:-c.css --ignore-file=match:-gen.css 
like image 181
Ravikiran janardhana Avatar answered Oct 04 '22 19:10

Ravikiran janardhana