64c2c049aaa7b33673b4d15a69b02ec87b8dd9b8

Author
Philip H <47042125+pheiduck@users.noreply.github.com>
Committer
Marc Cornellà <marc@mcornella.com>
Date

Message

feat(brew): add `brew autoremove` alias (#12574)

Closes #12574

Diff

 1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
 2index 347bf354699849393f1655926d179e8504ec0d80..fb07ebe109b52d1a52b64112ccf680bc8905a178 100644
 3--- a/plugins/brew/README.md
 4+++ b/plugins/brew/README.md
 5@@ -21,6 +21,7 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
 6 
 7 | Alias    | Command                                 | Description                                                           |
 8 | -------- | --------------------------------------- | --------------------------------------------------------------------- |
 9+| `ba`     | `brew autoremove`                       | Uninstall unnecessary formulae.                                       |
10 | `bc`     | `brew cleanup`                          | Run cleanup.                                                          |
11 | `bci`    | `brew info --cask`                      | Display information about the given cask.                             |
12 | `bcin`   | `brew install --cask`                   | Install the given cask.                                               |
13@@ -30,7 +31,7 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
14 | `bcubc`  | `brew upgrade --cask && brew cleanup`   | Upgrade outdated casks, then run cleanup.                             |
15 | `bcubo`  | `brew update && brew outdated --cask`   | Update Homebrew data, then list outdated casks.                       |
16 | `bcup`   | `brew upgrade --cask`                   | Upgrade all outdated casks.                                           |
17-| `bfu`    | `brew upgrade --formula`                | Upgrade only formulas (not casks).                                    |
18+| `bfu`    | `brew upgrade --formula`                | Upgrade only formulae (not casks).                                    |
19 | `bi`     | `brew install`                          | Install a formula.                                                    |
20 | `bl`     | `brew list`                             | List all installed formulae.                                          |
21 | `bo`     | `brew outdated`                         | List installed formulae that have an updated version available.       |
22diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
23index 155330c35cc2f9cc1a31555a47d6f78251477983..52ef3fd57c1347c0ada776282010b12d9b4dba10 100644
24--- a/plugins/brew/brew.plugin.zsh
25+++ b/plugins/brew/brew.plugin.zsh
26@@ -34,6 +34,7 @@ if [[ -d "$HOMEBREW_PREFIX/share/zsh/site-functions" ]]; then
27   fpath+=("$HOMEBREW_PREFIX/share/zsh/site-functions")
28 fi
29 
30+alias ba='brew autoremove'
31 alias bc='brew cleanup'
32 alias bci='brew info --cask'
33 alias bcin='brew install --cask'