Skip to content

Instantly share code, notes, and snippets.

@mickelsonm
Last active August 29, 2015 14:02
Show Gist options
  • Save mickelsonm/fa05c94d40d398089bf8 to your computer and use it in GitHub Desktop.
Save mickelsonm/fa05c94d40d398089bf8 to your computer and use it in GitHub Desktop.
dev mac setup
#!/bin/bash
#install homebrew right from the start
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
#install brew cask
brew install caskroom/cask/brew-cask
#update everything
brew update
brew cask update
#install all the system stuff
brew install wget
brew install gcutil
brew install git
brew install bazaar
brew install mercurial
brew install nvm
brew install redis
brew install mysql
#install all of the great applications
brew cask install adium
brew cask install slack
brew cask install atom
brew cask install iterm2
brew cask install divvy
brew cask install filezilla
brew cask install firefox
brew cask install google-chrome
brew cask install vlc
brew cask install navicat-premium
#install sublime-text 3
brew cask install https://gist.githubusercontent.com/mickelsonm/1ca0656355fdf4cf383d/raw/2bce17049cdad803449ae540058fc5659a507365/sublime-text-3.rb
#setup the bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export PATH=/usr/local/go/bin:$PATH' >> $HOME/.bash_profile
echo 'export PATH=/usr/local/bin:$PATH' >> $HOME/.bash_profile
echo 'source /usr/local/opt/nvm/nvm.sh' >> $HOME/.bash_profile
source ~/.bash_profile
#setup Go library directory and install Go runtime environment
mkdir $HOME/go/
wget -qO- https://storage.googleapis.com/golang/go1.2.2.darwin-amd64-osx10.6.tar.gz | tar -C /usr/local -xzf -
#setup node.js
nvm install v0.11.13
nvm alias default v0.11.13
#setup ruby
mkdir -p ~/.rvm/src && cd ~/.rvm/src && rm -rf ./rvm && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
echo 'if [[ -s $HOME/.rvm/scripts/rvm ]]; then' >> $HOME/.profile
echo ' source $HOME/.rvm/scripts/rvm;' >> $HOME/.profile
echo 'fi' >> $HOME/.profile
source ~/.profile
rvm install ruby-2.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment