Browse Source

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

Closes #12574
Philip H 9 months ago
parent
commit
64c2c049aa
2 changed files with 3 additions and 1 deletions
  1. 2 1
      plugins/brew/README.md
  2. 1 0
      plugins/brew/brew.plugin.zsh

+ 2 - 1
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.       |

+ 1 - 0
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'