split homebrew bundle files

This commit is contained in:
Noah Masur
2020-11-28 12:53:42 -05:00
parent dfc02156a4
commit 2689810b1a
8 changed files with 81 additions and 56 deletions

17
scripts/all_brews Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
DOTS=$(dirname "$0")/..
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
DOTS="$PWD"
all_brews() {
brewfile=$DOTS/homebrew/Caskfile
for brewfile in $(find "$DOTS/homebrew" -iname "*.Brewfile")
do
/usr/local/bin/brew bundle check --file "$brewfile" \
&& /usr/local/bin/brew bundle --file "$brewfile"
done \
&& echo "all brews installed ✓"
}
all_brews