Thursday, August 1, 2019

ripgrep ignore files with glob

The iglob parameter overrides all the ignore files, so you have to repeat every ignore if you use iglob on the command line to ignore things:

rg --files --iglob  !logs/  --iglob  !cache/ --iglob  !images/ --iglob  !obsolete/   --iglob "!*log" --iglob "!*.orig" --iglob "!*~" --iglob "!*min.js" 

No comments:

Post a Comment