Home

Awesome

OMZ Homebrew

Description

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.

Aliases

AliasCommandDescription
blecho "Formulae\n========" && brew list -1 && echo "\nCasks\n=====" && brew list --cask -1List installed forumulae and casks
bibrew installInstall a forumula
bcibrew install --caskInstall a cask
bupbrew update && echo "\nFormulae\n========" && brew outdated && echo "\nCasks\n=====" && brew outdated --caskFetch the latest version of Homebrew, then list outdated formulae and casks
bugbrew upgrade && brew upgrade --cask && brew cleanupUpgrade outdated (and unpinned) forumlae and casks, then removes stale lockfiles, outdated downloads, and versions
buddybrew upgrade --dry-run && brew upgrade --cask --dry-runList the packages that would be updated by bug

Installation

  1. 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
    
  2. Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):

    plugins=(... omz-homebrew)
    
  3. Re-source your ~/.zshrc

    source ~/.zshrc
    
  4. There is no step 4.