|
| 1 | +# `brew` |
| 2 | + |
| 3 | +Installs Homebrew, a core set of GNU/POSIX CLI replacements, and configures |
| 4 | +shorthand aliases for common Homebrew commands. |
| 5 | + |
| 6 | +## Installs |
| 7 | + |
| 8 | +| CLI | macOS | Debian | |
| 9 | +| ----------- | ------ | ------ | |
| 10 | +| `coreutils` | `brew` | — | |
| 11 | +| `curl` | `brew` | — | |
| 12 | +| `findutils` | `brew` | — | |
| 13 | +| `gettext` | `brew` | — | |
| 14 | +| `gnu-sed` | `brew` | — | |
| 15 | +| `gnu-tar` | `brew` | — | |
| 16 | +| `grep` | `brew` | — | |
| 17 | +| `make` | `brew` | — | |
| 18 | +| `moreutils` | `brew` | — | |
| 19 | +| `rename` | `brew` | — | |
| 20 | +| `stow` | `brew` | — | |
| 21 | +| `tree` | `brew` | — | |
| 22 | +| `wget` | `brew` | — | |
| 23 | + |
| 24 | +## Configures |
| 25 | + |
| 26 | +- `~/.brew-aliases/` (stow) — Homebrew external-command aliases: |
| 27 | + |
| 28 | + | Alias | Expands to | |
| 29 | + | -------------- | -------------------------------------------------------------- | |
| 30 | + | `brew c` | `brew cleanup` | |
| 31 | + | `brew exist` | `brew list -1 \| grep` | |
| 32 | + | `brew f` | `brew info` | |
| 33 | + | `brew i` | `brew install` | |
| 34 | + | `brew ls-font` | `brew list -1 \| grep ^font-` | |
| 35 | + | `brew od` | `brew outdated` | |
| 36 | + | `brew refresh` | `brew update && brew outdated && brew upgrade && brew cleanup` | |
| 37 | + | `brew ri` | `brew reinstall` | |
| 38 | + | `brew s` | `brew search` | |
| 39 | + | `brew t` | `brew tap` | |
| 40 | + | `brew u` | `brew uninstall` | |
| 41 | + |
| 42 | +- Starts `brew autoupdate` service (every 12 hours via `domt4/autoupdate` tap) |
| 43 | + |
| 44 | +## Notes |
| 45 | + |
| 46 | +- macOS-only; this package is the package manager itself and is a prerequisite |
| 47 | + for nearly every other `macos-*` target. |
| 48 | +- `brew autoupdate start 43200` keeps packages up to date in the background |
| 49 | + without manual `brew upgrade` runs. |
| 50 | + |
| 51 | +## References |
| 52 | + |
| 53 | +- [Homebrew](https://brew.sh/): Official Homebrew installation and documentation. |
| 54 | +- [domt4/homebrew-autoupdate](https://github.com/domt4/homebrew-autoupdate): Third-party tap that provides the `brew autoupdate` service. |
0 commit comments