Setting up OS X Mavericks with Homebrew, Cask, and rbenv
You've got a freshly built OS X Mavericks 10.9 system and it's time to start loading up the usual apps you use and setup your development environment.
Luckily, there are lots of great developer tools for automating this task.
I learned some new tricks (e.g. Homebrew Cask) from Tadej Murovec's post. And, my Macbook Air is now 2 years old and all the command line tools / versions have changed, so I needed to re-document this for myself.
Your first stop is the App Store, where you can visit the Purchases tab and re-download items you've bought.
You're going to need Xcode1 for your development environment (and it's a big download), so get it going.
I used to use NeoOffice, which has now moved to the App Store. I will likely end up paying $30 and buying it.
Also: launch and sign in to Evernote right away. If you have a lot of info in Evernote, it will need to download and cache a lot of metadata (for me it was 4GB).
Download command line tools & install them.
To check if everything is OK after it's installed, you run this:
Homebrew Cask is a new add-on to Homebrew that lets you install Mac apps from the commandline as well. I'm just getting started with it and am still learning.
brew install caskroom/cask/brew-cask
Here are the apps you can use Cask to install. You can run
brew cask search to see if a desktop app is available.
Get Dropbox installed right away so it can start syncing your files in the background as well.
brew cask install dropbox
brew cask install google-chrome
I have a couple of games that I've purchased directly, but most I buy and install via Steam.
brew cask install steam
OmniGraffle is still my go-to tool for professional diagraming, from marketecture to wireframes and site maps.
brew cask install omnigraffle
I switched off of Sublime Text and am trying Atom.
brew cask install atom
Heroku Toolbelt is what you'll need to manage your Heroku apps.
brew install heroku-toolbelt
Heroku are also the maintainers of Postgres.app, a Mac-friendly Postgres database install.
brew cask install postgres
When run, it will want to move itself to the Applications directory
You're still going to want to install the command line version of Postgres, since other apps want the libraries it installs with.
brew install postgres
Now it's time for the rubys! I use rbenv as my Ruby version manager, so I start there.
brew install rbenv
brew install rbenv-gem-rehash
brew install ruby-build
Now install a newer version of Ruby and set it as the default.
rbenv install 2.1.2
rbenv global 2.1.2
Update the gem system and install the Rails / Ruby basics.
gem update --system
gem install bundler jekyll rails
Compared to the drama of getting a local Ruby environment up and running, Node seems to still be a lot simpler.
brew install node
Update January 2015
These instructions work just fine on Yosemite as well.
I removed the Homebrew one-liner, since it has changed in the mean time, and added the footnote about the Terminal commmand for Xcode.
I've also finally gotten around to maintaining some dotfiles, which I keep in Dropbox and symlink into my home folder.