Skip to content

Instantly share code, notes, and snippets.

@shannonwells
Last active January 12, 2019 00:12
Show Gist options
  • Save shannonwells/28a5661994aecf341600dd18617781be to your computer and use it in GitHub Desktop.
Save shannonwells/28a5661994aecf341600dd18617781be to your computer and use it in GitHub Desktop.
Install script 2: brews.sh - installs all the brew formulas and casks specified in each of 3 files: formulas, casks, fonts.
#!/bin/sh
# Make or touch three files: formulas, casks, and fonts.
# In them, list their respective names of what you want installed.
echo "\033[1;37;45m \033[m"
echo "\033[1;37;45m installing formulas \033[m"
echo "\033[1;37;45m \033[m"
FORMULAS=`cat ./formulas`
for formula in $FORMULAS ; do
( brew install $formula )
done
echo "\033[1;37;44m \033[m"
echo "\033[1;37;44m installing casks \033[m"
echo "\033[1;37;44m \033[m"
CASKS=`cat ./casks`
brew tap caskroom/cask
for cask in $CASKS; do
( brew cask install $cask )
done
echo "\033[1;37;42m \033[m"
echo "\033[1;37;42m installing fonts \033[m"
echo "\033[1;37;42m \033[m"
FONTS=`cat ./fonts`
brew tap caskroom/fonts
for font in $FONTS; do
( brew cask install $font )
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment