Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 90 lines (66 sloc) 2.07 KB
#!/usr/bin/env bash
#
# SSH keys configuration
#
echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
echo "Copying public key to clipboard. Paste it into your Github account ..."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh
#
# Homebrew
#
echo "Installing Homebrew, a good OS X package manager ..."
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
brew update
echo "Put Homebrew location earlier in PATH ..."
echo "
# Homebrew config
export PATH=\"/usr/local/bin:\$PATH\"
export MANPATH=\"/usr/local/share/man:\$MANPATH\"
" >> ~/.zshrc
source ~/.zshrc
#
# Utilities
#
echo "Installing ack, a good way to search through files ..."
brew install ack
echo "Installing Macvim, the best text editor ..."
brew install macvim --override-system-vim
echo "Installing tmux, a good way to save project state and switch between projects ..."
brew install tmux
brew install reattach-to-user-namespace
echo "Installing ctags, useful for vim ..."
brew install ctags
echo "Installing GraphicsMagick, good for cropping and re-sizing images ..."
brew install graphicsmagick
#
# Databases
#
echo "Installing Postgres, a good open source relational database ..."
brew install postgres
echo "Installing MySQL, another goof open source relational database ..."
brew install mysql
echo "Installing Redis, a key/value database ..."
brew install redis
#
# Ruby
#
echo "Installing rbenv, for managing rubies"
brew install rbenv
echo "Installing ruby-build, for building rubies"
brew install --HEAD ruby-build
echo "Installing Ruby 1.9.3 stable and making it the default Ruby ..."
rbenv install 1.9.3-p194
rbenv rehash
rbenv global 1.9.3-p194
echo "
# rvenv config
export PATH=\"\$HOME/.rbenv/bin:\$PATH\"
eval \"\$(rbenv init -)\"
" >> ~/.zshrc
source ~/.zshrc
echo "Installing the bundler gem for managing the gems of your projects ..."
gem install bundler --no-rdoc --no-ri
rbenv rehash
echo "WARNING: Remember to setup postgres, mysql and redis!"