Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com>
Committer
Marc Cornellà <marc@mcornella.com>
Date
Message
feat(brew)!: add `brew upgrade` alias (#7536)
BREAKING CHANGE: the `bubc` alias has been removed, as `brew cleanup`
is performed automatically. Instead, the `bup` alias is added to just
run `brew upgrade`.
See https://brew.sh/2019/02/02/homebrew-2.0.0
Closes #7536
Diff
1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
2index 299393b2862c870d8354c6ee6706abc2d37e9b5e..9cd9c249ddac1a708479037f494ecb6973972266 100644
3--- a/plugins/brew/README.md
4+++ b/plugins/brew/README.md
5@@ -26,10 +26,11 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
6 | `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. |
7 | `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. |
8 | `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. |
9+| `bup` | `brew upgrade` | Upgrade outdated, unpinned brews (with existing install options). |
10 | `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae and casks, then run cleanup. |
11 | `bugbc` | `brew upgrade --greedy && brew cleanup` | Upgrade outdated formulae and casks (greedy), then run cleanup. |
12 | `bubo` | `brew update && brew outdated` | Update Homebrew data, then list outdated formulae and casks. |
13-| `bubu` | `bubo && bubc` | Do the last two operations above. |
14+| `bubu` | `bubo && bup` | Do the last two operations above. |
15 | `bfu` | `brew upgrade --formula` | Upgrade only formulas (not casks). |
16 | `buz` | `brew uninstall --zap` | Remove all files associated with a cask. |
1718diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
19index b15137e0f5b73647fe079ac1e5f4842ac4680c80..f2e7e6cffbb5d4d82426f7395717c667f3e3637f 100644
20--- a/plugins/brew/brew.plugin.zsh
21+++ b/plugins/brew/brew.plugin.zsh
22@@ -38,10 +38,10 @@ alias bcubc='brew upgrade --cask && brew cleanup'
23 alias bcubo='brew update && brew outdated --cask'
24 alias brewp='brew pin'
25 alias brewsp='brew list --pinned'
26-alias bubc='brew upgrade && brew cleanup'
27+alias bup='brew upgrade'
28 alias bugbc='brew upgrade --greedy && brew cleanup'
29 alias bubo='brew update && brew outdated'
30-alias bubu='bubo && bubc'
31+alias bubu='bubo && bup'
32 alias bubug='bubo && bugbc'
33 alias bfu='brew upgrade --formula'
34 alias buz='brew uninstall --zap'