Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 80 lines (57 sloc) 3.152 kb
#!/usr/bin/env zsh
successfully() {
$* || (echo "failed" 1>&2 && exit 1)
}
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
successfully open https://github.com/account/ssh
echo "Fixing permissions ..."
successfully sudo chown -R `whoami` /usr/local
echo "Installing Homebrew, a good OS X package manager ..."
successfully ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
successfully brew update
echo "Putting Homebrew location earlier in PATH ..."
successfully echo "
# recommended by brew doctor
export PATH='/usr/local/bin:$PATH'" >> ~/.zshenv
successfully source ~/.zshenv
echo "Installing GNU Compiler Collection and dependencies ..."
successfully brew tap homebrew/dupes
successfully brew install autoconf automake apple-gcc42
echo "Installing libksba, recommended for Ruby 1.9.3 ..."
successfully brew install libksba
echo "Installing Postgres, a good open source relational database ..."
successfully brew install postgres --no-python
successfully initdb /usr/local/var/postgres -E utf8
echo "Installing Redis, a good key-value database ..."
successfully brew install redis
echo "Installing ack, for searching the contents of files ..."
successfully brew install ack
echo "Installing ctags, for indexing files for vim tab completion of methods, classes, variables ..."
successfully brew install ctags
echo "Installing tmux, for saving project state and switching between projects ..."
successfully brew install tmux
echo "Installing reattach-to-user-namespace, for copy-paste and RubyMotion compatibility with tmux ..."
successfully brew install reattach-to-user-namespace
echo "Installing ImageMagick, for cropping and re-sizing images ..."
successfully brew install imagemagick
echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
successfully brew install qt
echo "Installing watch, used to execute a program periodically and show the output ..."
successfully brew install watch
echo "Installing RVM (Ruby Version Manager) and Ruby 1.9.3-p327, which becomes the default ..."
successfully curl -L https://get.rvm.io | bash -s stable --ruby
successfully echo "
# RVM
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshenv
successfully source ~/.rvm/scripts/rvm
echo "Installing critical Ruby gems for Rails development ..."
successfully gem install bundler rails pg foreman thin --no-rdoc --no-ri
echo "Installing standalone Heroku CLI client. You'll need administrative rights on your machine ..."
successfully curl -s https://toolbelt.heroku.com/install.sh | sh
echo "Installing the heroku-config plugin for pulling config variables locally to be used as ENV variables ..."
successfully /usr/local/heroku/bin/heroku plugins:install git://github.com/ddollar/heroku-config.git
echo "Your shell will now restart in order for changes to apply."
exec $SHELL -l
Jump to Line
Something went wrong with that request. Please try again.