Browse Source

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
Katrin Leinweber 5 years ago
parent
commit
51d71e650c
2 changed files with 4 additions and 3 deletions
  1. 2 1
      plugins/brew/README.md
  2. 2 2
      plugins/brew/brew.plugin.zsh

+ 2 - 1
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.                  |
 | `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. |
 | `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.       |
 | `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.              |
 | `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.     |
 | `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.        |
 | `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).                                  |
 | `bfu`    | `brew upgrade --formula`                | Upgrade only formulas (not casks).                                  |
 | `buz`    | `brew uninstall --zap`                  | Remove all files associated with a cask.                            |
 | `buz`    | `brew uninstall --zap`                  | Remove all files associated with a cask.                            |
 
 

+ 2 - 2
plugins/brew/brew.plugin.zsh

@@ -38,10 +38,10 @@ alias bcubc='brew upgrade --cask && brew cleanup'
 alias bcubo='brew update && brew outdated --cask'
 alias bcubo='brew update && brew outdated --cask'
 alias brewp='brew pin'
 alias brewp='brew pin'
 alias brewsp='brew list --pinned'
 alias brewsp='brew list --pinned'
-alias bubc='brew upgrade && brew cleanup'
+alias bup='brew upgrade'
 alias bugbc='brew upgrade --greedy && brew cleanup'
 alias bugbc='brew upgrade --greedy && brew cleanup'
 alias bubo='brew update && brew outdated'
 alias bubo='brew update && brew outdated'
-alias bubu='bubo && bubc'
+alias bubu='bubo && bup'
 alias bubug='bubo && bugbc'
 alias bubug='bubo && bugbc'
 alias bfu='brew upgrade --formula'
 alias bfu='brew upgrade --formula'
 alias buz='brew uninstall --zap'
 alias buz='brew uninstall --zap'