feat(brew): add aliases for reinstall and HEAD install (#13446)
Add new aliases:
- br: brew reinstall
- bih: brew install --HEAD
- brh: brew reinstall --HEAD
Diff
1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
2index 89c902ee4b12a3a3f84d2d236f1b828ff4732270..ab0b9cd730536caee18949a2678e47456d6a2fed 100644
3--- a/plugins/brew/README.md
4+++ b/plugins/brew/README.md
5@@ -35,11 +35,14 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
6 | `bdr` | `brew doctor` | Check your system for potential problems. |
7 | `bfu` | `brew upgrade --formula` | Upgrade only formulae (not casks). |
8 | `bi` | `brew install` | Install a formula. |
9+| `bih` | `brew install --HEAD` | Install a formula with --HEAD |
10 | `bl` | `brew list` | List all installed formulae. |
11 | `bo` | `brew outdated` | List installed formulae that have an updated version available. |
12+| `br` | `brew reinstall` | Reinstall a formula. |
13 | `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. |
14 | `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. |
15 | `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. |
16+| `brh` | `brew reinstall --HEAD` | Reinstall a formula with --HEAD |
17 | `bs` | `brew search` | Perform a substring search of cask tokens and formula names for text. |
18 | `bsl` | `brew services list` | List all running services. |
19 | `bsoff` | `brew services stop` | Stop the service and unregister it from launching at login (or boot). |
20diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
21index 432a360767f8fd3a8239ba4075515b866cffd5c6..7d5db206816e4b8ab4df1716df7cc6f3ae552483 100644
22--- a/plugins/brew/brew.plugin.zsh
23+++ b/plugins/brew/brew.plugin.zsh
24@@ -48,10 +48,13 @@ alias bcup='brew upgrade --cask'
25 alias bdr='brew doctor'
26 alias bfu='brew upgrade --formula'
27 alias bi='brew install'
28+alias bih='brew install --HEAD'
29 alias bl='brew list'
30 alias bo='brew outdated'
31+alias br='brew reinstall'
32 alias brewp='brew pin'
33 alias brewsp='brew list --pinned'
34+alias brh='brew reinstall --HEAD'
35 alias bs='brew search'
36 alias bsl='brew services list'
37 alias bsoff='brew services stop'