brew
Sets up Homebrew's environment (brew shellenv, sbin on PATH, completions)
and adds two-to-five-letter aliases for the whole brew surface. On this
setup Homebrew is Brewfile-driven: ~/.Brewfile (source: dot_Brewfile) is
the single source of truth, installed by brew bundle --global — which
chezmoi runs automatically on chezmoi apply.
| Alias | Runs |
|---|---|
bi / bcin | brew install / brew install --cask |
bubo | brew update && brew outdated |
bubu | bubo then brew upgrade |
bsl / bson / bsoff | brew services list / start / stop |
bcn | brew cleanup |
Pro tips
- Don't
biand walk away. A barebrew installworks today but never propagates to the other machines and won't survive a rebuild. Add abrew "name"line todot_Brewfilein the chezmoi source, runchezmoi apply, done — that's the whole workflow. bubobeforebubu— see what's outdated before upgrading. Blindbubumid-week has shuffled tool versions under running work before; gitleaks in particular gates every commit, so if a hook starts failing after an upgrade,brew bundle --globalrestores the Brewfile world.brews(function, not alias) shows leaves with their dependents plus casks — the quickest "what did I actually ask for vs. what came along" audit, and a good diff against the Brewfile.ba(brew autoremove) after uninstalls keeps orphaned deps from accumulating; pair withbcnto reclaim disk.bslis worth memorizing — launchd-managed services (databases, daemons) surface here, not inps.