Set a path that ripgrep reads for default arguments.
Section: Config files
Point ripgrep at a config file
bash
bash
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"Explanation
ripgrep reads the file specified by `RIPGREP_CONFIG_PATH` and applies each argument line automatically.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Config files
Sample ripgrep config contents
Example settings for smart case and hidden files.
Define a custom type in config
Persist custom type mappings across sessions.
Debug config-driven behavior
Inspect the effective path filtering and search decisions.
Ignore the config for one invocation
Run ripgrep without loading config defaults.
Emit vimgrep-style results
Print `file:line:column:text` output for editors.