Skip to content

Instantly share code, notes, and snippets.

@danieldraper
Created July 16, 2017 12:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldraper/2fe204bac1145f9d78511122653cc8e1 to your computer and use it in GitHub Desktop.
Save danieldraper/2fe204bac1145f9d78511122653cc8e1 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Author: Daniel Draper
# Credit:
# - https://github.com/vdka/dotfiles/
# - https://github.com/mathiasbynens/dotfiles
# Ask for the administrators password.
sudo -v
# Keep-alive: Update `sudo` timestamp until this file has finished executing.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Check if homebrew is installed, otherwise install homebrew.
if ! type brew &> /dev/null ; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Ensure homebrew is installed correcttly and ready to go.
brew doctor
# Make sure we are using the latest version of homebrew.
brew update
# Update any already installed formulae.
brew upgrade
# Install formulae.
brew install wget
brew install vim --with-override-system-vi
brew install ag
brew install openssh
brew install ack
brew install git
brew install hub
brew install git-flow
brew install ngrok
brew install imagemagick --with-webp
brew install z
# Install applications using cask.
brew tap caskroom/cask
brew cask install --appdir="/Applications" iterm2
brew cask install --appdir="/Applications" atom
brew cask install --appdir="/Applications" virtualbox
brew cask install --appdir="/Applications" sketch
brew cask install --appdir="/Applications" google-chrome
brew cask install --appdir="/Applications" firefox
brew cask install --appdir="/Applications" slack
brew cask install --appdir="/Applications" skype
brew cask install --appdir="/Applications" dropbox
brew cask install --appdir="/Applications" spotify
brew cask install --appdir="/Applications" nylas-mail
# Install developer friendly quick look plugins; see https://github.com/sindresorhus/quick-look-plugins
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package
# Install docker now that the prerequisites are present.
brew install docker
# Remove outdated version from the cellar.
brew cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment