7dab4f07e614ad2ebeabb4f3de0bbacb67317540

Author
pahakalle <pahakalle@protonmail.ch>
Committer
pahakalle <pahakalle@protonmail.ch>
Date

Message

Added brew cask update

Diff

 1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
 2index aab55ea390d8802260a8de20de97eeb3ccc71355..c129a7652fe45be10c1377c0a0c0728be123d5f1 100644
 3--- a/plugins/brew/README.md
 4+++ b/plugins/brew/README.md
 5@@ -17,3 +17,5 @@ plugins=(... brew)
 6 | bubo   | `brew update && brew outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated formulae. |
 7 | bubc   | `brew upgrade && brew cleanup` | Upgrade outdated, unpinned brews (with existing install options), then removes stale lock files and outdated downloads for formulae and casks, and removes old versions of installed formulae. |
 8 | bubu   | `bubo && bubc`       | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. |
 9+| bcubo  | `brew update && brew cask outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated casks. |
10+| bcubc  | `brew cask reinstall $(brew cask outdated) && brew cleanup` | Updates outdated casks, then runs cleanup. |
11diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
12index 60b81f8ecb66357b768f8203f88c84a5b4de44d5..cfbaa3480eec781f762b8d61ae90b9335be2e50e 100644
13--- a/plugins/brew/brew.plugin.zsh
14+++ b/plugins/brew/brew.plugin.zsh
15@@ -4,6 +4,8 @@ alias brewsp='brew list --pinned'
16 alias bubo='brew update && brew outdated'
17 alias bubc='brew upgrade && brew cleanup'
18 alias bubu='bubo && bubc'
19+alias bcubo='brew update && brew cask outdated'
20+alias bcubc='brew cask reinstall $(brew cask outdated) && brew cleanup'
21 
22 if command mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
23 	print -P '%F{yellow}'Oh My Zsh brew plugin: