#!/usr/bin/env bash # Install command-line tools using Homebrew. # Ask for the administrator password upfront. sudo -v # Keep-alive: update existing `sudo` time stamp until the script has finished. while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & # 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 # Make sure we’re using the latest Homebrew. brew update # Upgrade any already-installed formulae. brew upgrade --all brew install zsh # Install more recent versions of some OS X tools. brew install vim --override-system-vi brew install homebrew/dupes/grep brew install homebrew/dupes/openssh brew install homebrew/dupes/screen brew install homebrew/php/php55 --with-gmp # Install font tools. brew tap bramstein/webfonttools brew install sfnt2woff brew install sfnt2woff-zopfli brew install woff2 # Install other useful binaries.$ # zsh brew install zsh zsh-completions curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh chsh -s /usr/local/bin/zsh brew install git brew install imagemagick --with-webp brew install nvm nvm install v9.3.0 nvm use 9.3.0 nvm alias default 9.3.0 # Install Cask brew install caskroom/cask/brew-cask brew tap caskroom/versions # Core casks brew cask install --appdir="/Applications" alfred brew cask install --appdir="~/Applications" iterm2 # Development tool casks brew cask install --appdir="/Applications" sublime-text brew cask install --appdir="/Applications" atom brew cask install --appdir="/Applications" virtualbox # Misc casks brew cask install --appdir="/Applications" google-chrome brew cask install --appdir="/Applications" firefox brew cask install --appdir="/Applications" slack brew cask install --appdir="/Applications" dropbox brew cask install --appdir="/Applications" zeplin brew cask install --appdir="/Applications" flux brew cask install --appdir="/Applications" postman brew cask install --appdir="/Applications" robomongo brew cask install --appdir="/Applications" spectacle brew cask install --appdir="/Applications" vlc brew cask install --appdir="/Applications" whatsapp brew cask install --appdir="/Applications" caprine brew cask install --appdir="/Applications" spotify # Install Docker, which requires virtualbox # brew install docker # brew install boot2docker # Install developer friendly quick look plugins; see https://github.com/sindresorhus/quick-look-plugins brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize # Remove outdated versions from the cellar. brew cleanup # Setup dev folder cd /~ mkdir Sites mkdir Developer