dotfiles/scripts/brews

17 lines
377 B
Plaintext
Raw Normal View History

2020-11-28 17:53:42 +00:00
#!/bin/sh
DOTS=$(dirname "$0")/..
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
DOTS="$PWD"
all_brews() {
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