Skip to content

ripgrep

Justin Puah edited this page Jul 13, 2026 · 1 revision

Config for ripgrep (rg).

Prerequisites

Tool Purpose Install
ripgrep Fast grep replacement winget install BurntSushi.ripgrep.MSVC / brew install ripgrep

Files

File Installed as Notes
ripgreprc ~/.ripgreprc Loaded when RIPGREP_CONFIG_PATH points to it

ripgrep doesn't load ~/.ripgreprc automatically. Set the env var:

export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"   # bash
$env:RIPGREP_CONFIG_PATH = "$HOME/.ripgreprc"   # PowerShell

Settings

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

Install

$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.

dotfiles wiki

Getting started

Core (Windows)

Cross-platform

Claude Code & AI

Reference

Legacy (Linux)

Troubleshooting

Clone this wiki locally