brew: Use a Brewfile instead of a custom script
This commit is contained in:
parent
552b6b0e1d
commit
ef41ce32a3
6 changed files with 653 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue