Browse Source

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>
F. Javier Campa L 2 years ago
parent
commit
fc86a16255
2 changed files with 3 additions and 1 deletions
  1. 1 1
      plugins/brew/README.md
  2. 2 0
      plugins/brew/brew.plugin.zsh

+ 1 - 1
plugins/brew/README.md

@@ -26,12 +26,12 @@ defined for convenience.
 | `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.       |
 | `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.         |
 | `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 && bubc`                        | Do the last two operations above.                                   |
 | `buf`    | `brew upgrade --formula`              | Upgrade only formulas (not casks).                                  |
 | `buf`    | `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.                            |
 
 
-
 ## Completion
 ## Completion
 
 
 With the release of Homebrew 1.0, they decided to bundle the zsh completion as part of the
 With the release of Homebrew 1.0, they decided to bundle the zsh completion as part of the

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

@@ -31,8 +31,10 @@ alias bcubc='brew upgrade --cask && brew cleanup'
 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 bubc='brew upgrade && 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 && bubc'
+alias bubug='bubo && bugbc'
 alias buf='brew upgrade --formula'
 alias buf='brew upgrade --formula'
 alias buz='brew uninstall --zap'
 alias buz='brew uninstall --zap'