From 51d71e650c369a5c3805a629c1efd314b5628921 Mon Sep 17 00:00:00 2001 From: Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com> Date: Sun, 29 Dec 2019 17:53:50 +0100 Subject: [PATCH] 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 --- plugins/brew/README.md | 3 ++- plugins/brew/brew.plugin.zsh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/brew/README.md b/plugins/brew/README.md index 299393b28..9cd9c249d 100644 --- a/plugins/brew/README.md +++ b/plugins/brew/README.md @@ -26,10 +26,11 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen | `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. | | `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. | | `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. | +| `bup` | `brew upgrade` | Upgrade outdated, unpinned brews (with existing install options). | | `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae and casks, then run cleanup. | | `bugbc` | `brew upgrade --greedy && brew cleanup` | Upgrade outdated formulae and casks (greedy), then run cleanup. | | `bubo` | `brew update && brew outdated` | Update Homebrew data, then list outdated formulae and casks. | -| `bubu` | `bubo && bubc` | Do the last two operations above. | +| `bubu` | `bubo && bup` | Do the last two operations above. | | `bfu` | `brew upgrade --formula` | Upgrade only formulas (not casks). | | `buz` | `brew uninstall --zap` | Remove all files associated with a cask. | diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index b15137e0f..f2e7e6cff 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -38,10 +38,10 @@ alias bcubc='brew upgrade --cask && brew cleanup' alias bcubo='brew update && brew outdated --cask' alias brewp='brew pin' alias brewsp='brew list --pinned' -alias bubc='brew upgrade && brew cleanup' +alias bup='brew upgrade' alias bugbc='brew upgrade --greedy && brew cleanup' alias bubo='brew update && brew outdated' -alias bubu='bubo && bubc' +alias bubu='bubo && bup' alias bubug='bubo && bugbc' alias bfu='brew upgrade --formula' alias buz='brew uninstall --zap'