Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 511 Bytes

2022-01-20_using-a-config-file-for-ripgrep-(rg).md

File metadata and controls

21 lines (14 loc) · 511 Bytes

Using a config file for ripgrep (rg)

You can use a config file with ripgrep. See the official docs. Note that you absolutely need to set RIPGREP_CONFIG_PATH, in my case in ~/.zshenv, and that you can't use ~, I had it as ~/.ripgreprc at first and it didn't work. I had to set it as:

export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"

And I used it with:

--context=5

Because I like having context