An alternative plugin for Oh My Zsh offering several aliases for common brew commands. While there is an existing brew
plugin, its provided aliases don't match my needs. This plugin does not conflict with the official one, and both can be used side-by-side.
Alias | Command | Description |
---|---|---|
bl | echo "Formulae\n========" && brew list -1 && echo "\nCasks\n=====" && brew list --cask -1 |
List installed forumulae and casks |
bi | brew install |
Install a forumula |
bci | brew install --cask |
Install a cask |
bup | brew update && echo "\nFormulae\n========" && brew outdated && echo "\nCasks\n=====" && brew outdated --cask |
Fetch the latest version of Homebrew, then list outdated formulae and casks |
bug | brew upgrade && brew upgrade --cask && brew cleanup |
Upgrade outdated (and unpinned) forumlae and casks, then removes stale lockfiles, outdated downloads, and versions |
buddy | brew upgrade --dry-run && brew upgrade --cask --dry-run |
List the packages that would be updated by bug |
-
Clone this repository into
$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)git clone https://github.com/digitalraven/omz-homebrew ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/omz-homebrew
-
Add the plugin to the list of plugins for Oh My Zsh to load (inside
~/.zshrc
):plugins=(... omz-homebrew)
-
Re-source your
~/.zshrc
source ~/.zshrc
-
There is no step 4.