Skip to content

Instantly share code, notes, and snippets.

@jwelshiv
Last active December 15, 2015 00:39
Show Gist options
  • Save jwelshiv/5174665 to your computer and use it in GitHub Desktop.
Save jwelshiv/5174665 to your computer and use it in GitHub Desktop.
Clean OSX Mountain Lion install (10.8.3) and ruby/dev environment.
# Obviously not all required, these are just fairly common tools.
# Install Xcode from App Store
# open XCode > Preferences > Downloads > Install the command line tools
# -- OR --
# Download and install just the command line tools from https://developer.apple.com/downloads
# Homebrew for dependencies
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew update
# Install git, ruby, and updated libs
brew install git
brew install libxml2 openssl rbenv ruby-build
# Install zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
# -- Reload Terminal
# Install ruby
rbenv install 1.9.3-p392
# Make default ruby
rbenv global 1.9.3-p392
# Postgresql from heroku
# "The easiest way to run PostgreSQL on the Mac"
http://postgresapp.com/
# MySQL
# follow instructions following install
# or brew info mysql to show again anytime
brew install mysql
# Other useful stuff
brew install curl-ca-bundle
brew install redis
brew install memcached
brew install mongodb
brew install ghostscript
brew install imagemagick
# Git config
git config --global user.name 'James Welsh'
git config --global user.email email@example.com
# Git aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
# Sublime Text 2 Editor
http://www.sublimetext.com/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment