Skip to content

Instantly share code, notes, and snippets.

@tannerjfco
Last active May 6, 2016 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tannerjfco/f297553c8981155c6e0e to your computer and use it in GitHub Desktop.
Save tannerjfco/f297553c8981155c6e0e to your computer and use it in GitHub Desktop.
newbox.sh
#! /bin/sh
echo "Restore Privacy"
curl -sSL https://fix-macosx.com/fix-macosx.py | python
echo "Installing xcode"
xcode-select --install
wait
echo "Installing Homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Adding cask"
brew doctor
brew update
brew tap caskroom/cask
brew install caskroom/cask/brew-cask
echo "Initialize cask. enter your password when prompted"
brew cask
echo "Install apps"
brew cask install iterm2
brew cask install sublime-text
brew cask install virtualbox
brew cask install vagrant
brew cask install firefox
brew cask install google-chrome
echo "Cleanup"
brew cask cleanup
echo "Install oh-my-zsh"
curl -L http://install.ohmyz.sh | sh
echo "Install RVM"
curl -sSL https://get.rvm.io | bash -s -- --auto-dotfiles
source ~/.zshrc
rvm install 2.2 --force
source ~/.rvm/scripts/rvm
rvm use 2.2 --default
gem install bundler --version 1.10.5
echo "Prepare for Github"
brew install hub
echo "alias git=hub" >> ~/.zshrc
ssh-keygen
pbcopy < ~/.ssh/id_rsa.pub
echo "Your key should be copied to clipboard and ready to be added to Github"
echo "Your computer is now setup. Open a new terminal window and run ruby --version to ensure the correct Ruby version is being used"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment