Skip to content

Instantly share code, notes, and snippets.

@dentedtriangle
Created April 16, 2012 04:58
Show Gist options
  • Save dentedtriangle/2396391 to your computer and use it in GitHub Desktop.
Save dentedtriangle/2396391 to your computer and use it in GitHub Desktop.
Setup Mac from Scratch
## Install xcode 4 - App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12)
## iTerm2 - http://www.iterm2.com/
## Homebrew http://mxcl.github.com/homebrew/
ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Note that Xcode is a pre-req for Homebrew
## Set shell to ZSH and install oh-my-zsh
brew install wget
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
restart iTerm2
## SCM
### Git
brew install git
http://help.github.com/mac-set-up-git/
Copy over your SSH Keys from your existing machine if you have them and want to carry over your existing SSH configs.
## RVM: http://rvm.beginrescueend.com/rvm/install/
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
### .zshrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Start new shell session
#### Install ruby
rvm install 1.9.3
rvm notes
See if there is anything in the rvm notes you need to take action on. As of this writing the compiler needs to be overridden.
Create a .gemrc file and add the line
gem: --no-ri --no-rdoc
rvm --default 1.9.3
rvmsudo gem install bundler
rvmsudo gem install rails
#### Pow
curl get.pow.cx | sh
#### mysql
Get a DMG based and pre-compiled install from http://www.mysql.com/downloads/mysql/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment