746424f1614a70a8c318979f5cf348babe603d54

Author
Sung kyung Park <44727001+sungkpark@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(homebrew): Adding new alias for brew uninstall --zap as buz closes #10329 (#10331)

* Adding new alias for brew uninstall --zap as buz

* Closes #10329

* add buz

* closes #10329

* Fix typo

* Closes ohmyzsh#10329

* Closes ohmyzsh#10329

Co-authored-by: Sung <sungkyungpark@bol.com>
Co-authored-by: Robby Russell <robby@planetargon.com>

Diff

 1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
 2index 9ce2c5bb03700f4b57f079db4a57055e8bcc49b5..cfaedccd8a3d21327734e4da146dbeeb7317a0ff 100644
 3--- a/plugins/brew/README.md
 4+++ b/plugins/brew/README.md
 5@@ -21,6 +21,7 @@ defined for convenience.
 6 | -------- | ------------------------------------- | ------------------------------------------------------------------- |
 7 | `bcubc`  | `brew upgrade --cask && brew cleanup` | Update outdated casks, then run cleanup.                            |
 8 | `bcubo`  | `brew update && brew outdated --cask` | Update Homebrew data, then list outdated casks.                     |
 9+| `bcubc`  | `brew upgrade --cask && brew cleanup` | Update outdated casks, then run cleanup.                            |
10 | `brewp`  | `brew pin`                            | Pin a specified formula so that it's not upgraded.                  |
11 | `brews`  | `brew list -1`                        | List installed formulae or the installed files for a given formula. |
12 | `brewsp` | `brew list --pinned`                  | List pinned formulae, or show the version of a given formula.       |
13@@ -28,6 +29,8 @@ defined for convenience.
14 | `bubo`   | `brew update && brew outdated`        | Update Homebrew data, then list outdated formulae and casks.        |
15 | `bubu`   | `bubo && bubc`                        | Do the last two operations above.                                   |
16 | `buf`    | `brew upgrade --formula`              | Upgrade only formulas (not casks).                                  |
17+| `buz`    | `brew uninstall --zap`                | Remove all files associated with a cask.                            |
18+
19 
20 ## Completion
21 
22diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
23index ea89008232b285b3b28fb69ab0557b99f45ecfb0..808c509074c7f1a31cac66738674ab41d295a648 100644
24--- a/plugins/brew/brew.plugin.zsh
25+++ b/plugins/brew/brew.plugin.zsh
26@@ -27,12 +27,14 @@ fi
27 
28 alias bcubc='brew upgrade --cask && brew cleanup'
29 alias bcubo='brew update && brew outdated --cask'
30+alias bcubc='brew upgrade --cask && brew cleanup'
31 alias brewp='brew pin'
32 alias brewsp='brew list --pinned'
33 alias bubc='brew upgrade && brew cleanup'
34 alias bubo='brew update && brew outdated'
35 alias bubu='bubo && bubc'
36 alias buf='brew upgrade --formula'
37+alias buz='brew uninstall --zap'
38 
39 function brews() {
40   local formulae="$(brew leaves | xargs brew deps --installed --for-each)"