Notes
Last Updated: 2026-06-03
As macOS Monterey ages, modern package managers increasingly drop official support. While Homebrew may continue to function for some users, relying on it becomes progressively riskier.
Fortunately, several essential developer tools are written in Rust and can be installed directly via Cargo. This page documents a lightweight setup using:
ripgrep (rg) — a fast replacement for grepfd — a user-friendly replacement for findbat — a syntax-highlighted replacement for catThe goal is not to modernize Monterey itself, but to keep daily development productive on a platform that is slowly becoming a fossil.
grep -R)find)cat)| Tool | Purpose | Install Command |
|---|---|---|
| rg | Text search | cargo install ripgrep |
| fd | File search | cargo install fd-find |
| bat | File viewer | cargo install bat |
| Traditional Command | Modern Equivalent | Notes |
|---|---|---|
grep -R TODO . |
rg TODO |
Faster and cleaner |
grep -R SECRET_KEY . |
rg SECRET_KEY |
Common project search |
find . -name "*.py" |
fd -e py |
Simpler syntax |
find . -name Dockerfile |
fd Dockerfile |
Filename search |
cat README.md |
bat README.md |
Syntax highlighting |
find . -name "*.py" \| xargs grep foo |
rg foo -g "*.py" |
One command |
The three tools complement each other naturally:
rg "TODO"
fd "*.py"
bat README.md
Typical workflow:
# Locate a file
fd settings
# Search inside files
rg "DJANGO_SETTINGS_MODULE"
# View the file
bat config/settings/local.py
This creates a simple mental model:
fd finds files.rg finds text.bat displays content.Verify that Cargo binaries are available:
echo $PATH | tr ':' '\n' | rg cargo
Expected output:
/Users/<username>/.cargo/bin
Confirm installation:
which rg
which fd
which bat
Expected:
~/.cargo/bin/rg
~/.cargo/bin/fd
~/.cargo/bin/bat
List installed Cargo packages:
cargo install --list
eza, zoxide, and dust can be added later.The rg + fd + bat combination has a tendency to iron out brain wrinkles.
Instead of remembering obscure combinations of find, grep, and cat, the workflow becomes:
fd something
rg something
bat something
Whether this is enlightenment or cognitive atrophy remains under investigation.