From cd7162f3d17cf8883b8d205ea31e34012e050d36 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Paour Date: Mon, 28 Sep 2020 22:24:31 +0200 Subject: [PATCH] brew: add alias for brew to avoid upgrading casks (#9280) --- plugins/brew/README.md | 7 ++++--- plugins/brew/brew.plugin.zsh | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/brew/README.md b/plugins/brew/README.md index 398d3263c..b714b7ac0 100644 --- a/plugins/brew/README.md +++ b/plugins/brew/README.md @@ -15,10 +15,11 @@ plugins=(... brew) | `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. | -| `bubo` | `brew update && brew outdated` | Update Homebrew and all formulae, then list outdated formulae. | -| `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae, then run cleanup. | +| `bubo` | `brew update && brew outdated` | Update Homebrew data, then list outdated formulae and casks. | +| `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae and casks, then run cleanup. | | `bubu` | `bubo && bubc` | Do the last two operations above. | -| `bcubo` | `brew update && brew outdated --cask` | Update Homebrew and all formulae, then list outdated casks. | +| `buf` | `brew upgrade --formula` | Upgrade only formulas (not casks). | +| `bcubo` | `brew update && brew outdated --cask` | Update Homebrew data, then list outdated casks. | | `bcubc` | `brew cask reinstall $(brew outdated --cask) && brew cleanup` | Update outdated casks, then run cleanup. | ## Completion diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index c8b1e3568..30eb135bb 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -4,5 +4,6 @@ alias brewsp='brew list --pinned' alias bubo='brew update && brew outdated' alias bubc='brew upgrade && brew cleanup' alias bubu='bubo && bubc' +alias buf='brew upgrade --formula' alias bcubo='brew update && brew outdated --cask' alias bcubc='brew cask reinstall $(brew outdated --cask) && brew cleanup'