Ignore Ripgrep Ignore

I have an .rgignore file that ignores half of a monorepo that I almost never want to search in. Sometimes though, I do need to search that repo, and I’d rather not edit my ignore file. Here’s how I override it for one search: rg "I mean," --no-ignore This will search in every directory, even those I’m ignoring via the .rgignore.

November 10, 2018

Don’t miss my next essay

Hear from me immediately when I post: no ads, unsubscribe anytime.