Skip to content

Instantly share code, notes, and snippets.

@apackeer
Forked from jpantuso/osx_lion_rail_setup.md
Created October 2, 2012 20:14
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 apackeer/3823008 to your computer and use it in GitHub Desktop.
Save apackeer/3823008 to your computer and use it in GitHub Desktop.
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL

Setup new Mac with OSX Mountain Lion from scratch

First things first, run a software update...

Install xcode 4

App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.

Install Command Line Tools for Xcode

Downloads for Apple Developers Might need to register as a developer if you are not already. Need this for homebrew or you will get a warning when you run brew doctor

Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.

The best editor hands down.

Install Ubuntu Mono Fonts http://font.ubuntu.com/

Awesome font. Perfect for coding. Set up in Sublime Text 2 to use this font.

I feel there is an advantage in setting all your dev apps to use a consistent color scheme, especially your terminal and text editor/dev environment.

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

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

ZSH Autojump

brew install autojump
vi ~/.zshrc
    autoload -U compinit; compinit
    source /usr/local/Cellar/autojump/20/etc/autojump

PIP

easy_install pip

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.

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.2
rvm install 1.8.7
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.8.7
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