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>
This commit is contained in:
Sung kyung Park 2023-01-09 20:02:44 +01:00 committed by GitHub
parent 08c3ce8882
commit 746424f161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -21,6 +21,7 @@ defined for convenience.
| -------- | ------------------------------------- | ------------------------------------------------------------------- | | -------- | ------------------------------------- | ------------------------------------------------------------------- |
| `bcubc` | `brew upgrade --cask && brew cleanup` | Update outdated casks, then run cleanup. | | `bcubc` | `brew upgrade --cask && brew cleanup` | Update outdated casks, then run cleanup. |
| `bcubo` | `brew update && brew outdated --cask` | Update Homebrew data, then list outdated casks. | | `bcubo` | `brew update && brew outdated --cask` | Update Homebrew data, then list outdated casks. |
| `bcubc` | `brew upgrade --cask && brew cleanup` | Update outdated casks, then run cleanup. |
| `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. | | `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. | | `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. |
@ -28,6 +29,8 @@ defined for convenience.
| `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. |
## Completion ## Completion

View file

@ -27,12 +27,14 @@ fi
alias bcubc='brew upgrade --cask && brew cleanup' alias bcubc='brew upgrade --cask && brew cleanup'
alias bcubo='brew update && brew outdated --cask' alias bcubo='brew update && brew outdated --cask'
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 bubo='brew update && brew outdated' alias bubo='brew update && brew outdated'
alias bubu='bubo && bubc' alias bubu='bubo && bubc'
alias buf='brew upgrade --formula' alias buf='brew upgrade --formula'
alias buz='brew uninstall --zap'
function brews() { function brews() {
local formulae="$(brew leaves | xargs brew deps --installed --for-each)" local formulae="$(brew leaves | xargs brew deps --installed --for-each)"