Skip to content

Commit

Permalink
feat(brew): add brew autoremove alias (ohmyzsh#12574)
Browse files Browse the repository at this point in the history
  • Loading branch information
pheiduck authored and mcornella committed Jul 24, 2024
1 parent 9a0e4f0 commit 64c2c04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/brew/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand All @@ -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. |
Expand Down
1 change: 1 addition & 0 deletions plugins/brew/brew.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 64c2c04

Please sign in to comment.