ripgrep

Install

brew install ripgrep

Search

Supported File Types

Shows all supported file types that can be used as filter during search rather than using regex to limit to file types

rg --type-list

To limit search by file type use the name with -t option.

rg -t clojure 'foo'

Follow Symlinks

Follow any symlinks using the -L or --follow options:

rg -L 'foo'

With Context