summaryrefslogtreecommitdiff
path: root/plugins/brew
diff options
context:
space:
mode:
authorPhilip H <47042125+pheiduck@users.noreply.github.com>2024-07-22 23:21:02 +0200
committerMarc Cornellà <marc@mcornella.com>2024-07-24 12:49:49 +0200
commit64c2c049aaa7b33673b4d15a69b02ec87b8dd9b8 (patch)
treea814a5d3f95bc1d10eaea54cf415829b4488cc76 /plugins/brew
parent9a0e4f0acabbe3562e0ff1a33c4ac0064f3d196c (diff)
downloadzsh-64c2c049aaa7b33673b4d15a69b02ec87b8dd9b8.tar.gz
zsh-64c2c049aaa7b33673b4d15a69b02ec87b8dd9b8.tar.bz2
zsh-64c2c049aaa7b33673b4d15a69b02ec87b8dd9b8.zip
feat(brew): add `brew autoremove` alias (#12574)
Closes #12574
Diffstat (limited to 'plugins/brew')
-rw-r--r--plugins/brew/README.md3
-rw-r--r--plugins/brew/brew.plugin.zsh1
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/brew/README.md b/plugins/brew/README.md
index 347bf3546..fb07ebe10 100644
--- a/plugins/brew/README.md
+++ b/plugins/brew/README.md
@@ -21,6 +21,7 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
| Alias | Command | Description |
| -------- | --------------------------------------- | --------------------------------------------------------------------- |
+| `ba` | `brew autoremove` | Uninstall unnecessary formulae. |
| `bc` | `brew cleanup` | Run cleanup. |
| `bci` | `brew info --cask` | Display information about the given cask. |
| `bcin` | `brew install --cask` | Install the given cask. |
@@ -30,7 +31,7 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
| `bcubc` | `brew upgrade --cask && brew cleanup` | Upgrade outdated casks, then run cleanup. |
| `bcubo` | `brew update && brew outdated --cask` | Update Homebrew data, then list outdated casks. |
| `bcup` | `brew upgrade --cask` | Upgrade all outdated casks. |
-| `bfu` | `brew upgrade --formula` | Upgrade only formulas (not casks). |
+| `bfu` | `brew upgrade --formula` | Upgrade only formulae (not casks). |
| `bi` | `brew install` | Install a formula. |
| `bl` | `brew list` | List all installed formulae. |
| `bo` | `brew outdated` | List installed formulae that have an updated version available. |
diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
index 155330c35..52ef3fd57 100644
--- a/plugins/brew/brew.plugin.zsh
+++ b/plugins/brew/brew.plugin.zsh
@@ -34,6 +34,7 @@ if [[ -d "$HOMEBREW_PREFIX/share/zsh/site-functions" ]]; then
fpath+=("$HOMEBREW_PREFIX/share/zsh/site-functions")
fi
+alias ba='brew autoremove'
alias bc='brew cleanup'
alias bci='brew info --cask'
alias bcin='brew install --cask'