Skip to content

Instantly share code, notes, and snippets.

@davebarnwell
Last active January 31, 2016 10:55
Show Gist options
  • Select an option

  • Save davebarnwell/1f761bc929c95a0d0c60 to your computer and use it in GitHub Desktop.

Select an option

Save davebarnwell/1f761bc929c95a0d0c60 to your computer and use it in GitHub Desktop.
Setup a mac from command line using brew and cask
#Install some apps with Cask
# Apps
apps=(
google-drive
sourcetree
picasa
charles
handbrake
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
brew cask install --appdir="/Applications" ${apps[@]}
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
#Install a few utilies
binaries=(
graphicsmagick
ffmpeg
python
node
git
)
echo "installing binaries..."
brew install ${binaries[@]}
brew cleanup
#Install Cask
brew install caskroom/cask/brew-cask
#Install some apps with Cask
# Apps
apps=(
dropbox
google-chrome
slack
appcleaner
firefox
spotify
iterm2
shiori
atom
flux
sketch
vlc
quicklook-json
skype
transmission
spectacle
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
brew cask install --appdir="/Applications" ${apps[@]}
# Install Meteor
#install meteor
curl https://install.meteor.com/ | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment