1
0
Fork 0

brew: Use a Brewfile instead of a custom script

This commit is contained in:
Jeremy Kaplan 2020-04-15 18:21:17 -07:00
commit ef41ce32a3
6 changed files with 653 additions and 34 deletions

View file

@ -3,7 +3,10 @@
set -euo pipefail
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
brewfile="${CURDIR}/Brewfile"
comm -13 <(brew list --full-name | sort) <(sort "${CURDIR}/formulae") | xargs brew install
comm -13 <(brew list --full-name | sort) <(sort "${CURDIR}/head-only") | xargs brew install --HEAD
comm -13 <(brew cask list) <(sort "${CURDIR}/casks") | xargs brew cask install
bundle() {
brew bundle --file "${brewfile}" "${@:-}"
}
bundle check || bundle