yeiichi

Notes

View My GitHub Profile

Modern CLI Tools on a Half-Fossilized macOS Monterey

Last Updated: 2026-06-03

1. Introduction

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:

The goal is not to modernize Monterey itself, but to keep daily development productive on a platform that is slowly becoming a fossil.


2. Data Schema

A. Tool Definitions


B. Design Policy


3. Installation Summary

Tool Purpose Install Command
rg Text search cargo install ripgrep
fd File search cargo install fd-find
bat File viewer cargo install bat

4. Everyday Usage Cheat Sheet

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

5. Why This Combination Works

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:


6. Monterey Notes

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

7. Maintenance Notes

Personal Observation

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.