-
Notifications
You must be signed in to change notification settings - Fork 1
Homebrew Functions
Marco Valtas edited this page Feb 12, 2024
·
2 revisions
The brew functions is a set of shortcuts for interacting with homebrew
At your definition file start by requiring brew like so:
use "brew"Installs a homebrew package if is not already installed.
use "brew"
brew_pkg "vim"This is equivalent of writing:
do_run "brew install vim"
unless "brew list --versions vim &> /dev/null"Install a homebrew cask if it is not already installed.
use "brew"
brew_cask "hipchat"This is equivalent of writing:
do_run "brew install --cask hipchat"
unless "brew list --cask hipchat &> /dev/null"