-
Notifications
You must be signed in to change notification settings - Fork 0
ripgrep
Justin Puah edited this page Jul 13, 2026
·
1 revision
Config for ripgrep (rg).
| Tool | Purpose | Install |
|---|---|---|
| ripgrep | Fast grep replacement |
winget install BurntSushi.ripgrep.MSVC / brew install ripgrep
|
| File | Installed as | Notes |
|---|---|---|
ripgreprc |
~/.ripgreprc |
Loaded when RIPGREP_CONFIG_PATH points to it |
ripgrep doesn't load
~/.ripgreprcautomatically. Set the env var:export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc" # bash $env:RIPGREP_CONFIG_PATH = "$HOME/.ripgreprc" # PowerShell
| Setting | Effect |
|---|---|
--hidden |
Searches hidden files and directories |
--follow |
Follows symbolic links |
--no-ignore |
Ignores .gitignore / .ignore files |
--glob=!{.git,...} |
Excludes .git, node_modules, vendor, etc. |
--glob=!*.lock |
Excludes lockfiles |
--smart-case |
Case-insensitive unless pattern contains uppercase |
--sort=path |
Results sorted by file path |
--max-columns=10000 |
Truncates very long lines rather than omitting them |
--max-columns-preview |
Shows a truncated preview of lines that exceed --max-columns
|
--column |
Show column number of the first match on each line |
--colors=... |
Custom colour scheme for paths, line numbers, and matches |
$env:RIPGREP_CONFIG_PATH is set in powershell/Microsoft.PowerShell_profile.ps1
pointing directly at the repo file — no copy needed on Windows.
Linux: set manually or via ~/.bashrc:
export RIPGREP_CONFIG_PATH="$HOME/dotfiles/ripgrep/ripgreprc"Source: ripgrep/README.md in the dotfiles repo.
Getting started
Core (Windows)
Cross-platform
Claude Code & AI
Reference
Legacy (Linux)
Troubleshooting