Search code examples
command-lineag

silver searcher ignore multiple directories


using The silver searcher how can I ignore multiple directories?

I tried ag foo --ignore-dir dir1,dir2 but it doesn't work.


Solution

  • you can specify the argument multiple times

    ag foo --ignore-dir dir1 --ignore-dir dir2