From fc86a16255a92fad36882666e093750c1aba4b21 Mon Sep 17 00:00:00 2001 From: "F. Javier Campa L" Date: Mon, 9 Jan 2023 20:07:41 +0100 Subject: [PATCH] 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 --- plugins/brew/README.md | 2 +- plugins/brew/brew.plugin.zsh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/brew/README.md b/plugins/brew/README.md index cfaedccd8..4a42b3d74 100644 --- a/plugins/brew/README.md +++ b/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. | | `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. | +| `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. | | `buf` | `brew upgrade --formula` | Upgrade only formulas (not casks). | | `buz` | `brew uninstall --zap` | Remove all files associated with a cask. | - ## Completion With the release of Homebrew 1.0, they decided to bundle the zsh completion as part of the diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index 808c50907..8275454a4 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -31,8 +31,10 @@ alias bcubc='brew upgrade --cask && brew cleanup' alias brewp='brew pin' alias brewsp='brew list --pinned' alias bubc='brew upgrade && brew cleanup' +alias bugbc='brew upgrade --greedy && brew cleanup' alias bubo='brew update && brew outdated' alias bubu='bubo && bubc' +alias bubug='bubo && bugbc' alias buf='brew upgrade --formula' alias buz='brew uninstall --zap'