feat(homebrew): Brew greedy upgrade aliases (#9623)
* Added 'greedy' brew upgrade aliases'
* Added a description of the new 'greedy' upgrade aliases
Co-authored-by: Robby Russell <robby@planetargon.com>
Diff
1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
2index cfaedccd8a3d21327734e4da146dbeeb7317a0ff..4a42b3d74ee9959065007aea0a9a2af02858d155 100644
3--- a/plugins/brew/README.md
4+++ b/plugins/brew/README.md
5@@ -26,12 +26,12 @@ defined for convenience.
6 | `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. |
7 | `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. |
8 | `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae and casks, then run cleanup. |
9+| `bugbc` | `brew upgrade --greedy && brew cleanup` | Upgrade outdated formulae and casks (greedy), then run cleanup. |
10 | `bubo` | `brew update && brew outdated` | Update Homebrew data, then list outdated formulae and casks. |
11 | `bubu` | `bubo && bubc` | Do the last two operations above. |
12 | `buf` | `brew upgrade --formula` | Upgrade only formulas (not casks). |
13 | `buz` | `brew uninstall --zap` | Remove all files associated with a cask. |
1415-
16 ## Completion
1718 With the release of Homebrew 1.0, they decided to bundle the zsh completion as part of the
19diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
20index 808c509074c7f1a31cac66738674ab41d295a648..8275454a4b30eeb410587f46a8511945cad3a0fe 100644
21--- a/plugins/brew/brew.plugin.zsh
22+++ b/plugins/brew/brew.plugin.zsh
23@@ -31,8 +31,10 @@ alias bcubc='brew upgrade --cask && brew cleanup'
24 alias brewp='brew pin'
25 alias brewsp='brew list --pinned'
26 alias bubc='brew upgrade && brew cleanup'
27+alias bugbc='brew upgrade --greedy && brew cleanup'
28 alias bubo='brew update && brew outdated'
29 alias bubu='bubo && bubc'
30+alias bubug='bubo && bugbc'
31 alias buf='brew upgrade --formula'
32 alias buz='brew uninstall --zap'
33