Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 66 lines (48 sloc) 2.39 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 MySQL ..."
successfully brew install mysql
echo "Installing ack, a good way to search through files ..."
successfully brew install ack
echo "Installing tmux, a good way to save project state and switch 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, good for cropping and re-sizing images ..."
successfully brew install imagemagick
echo "Installing PhantomJS, used by Poltergeist Webkit for headless Javascript integration testing ..."
successfully brew install phantomjs
echo "Install Redis, used by Resque for job queues"
successfully brew install redis
echo "Installing RVM (Ruby Version Manager) and Ruby 1.9.3, which becomes the default ..."
successfully curl -L https://get.rvm.io | bash -s -- --version 1.15.10 --ruby
successfully echo "
# RVM
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshenv
successfully source ~/.zshenv
echo "Installing Bundler to build gem dependencies ..."
successfully gem install bundler --no-rdoc --no-ri
echo "Installing the foreman gem for serving your Rails apps in development mode ..."
successfully gem install foreman --no-rdoc --no-ri
Something went wrong with that request. Please try again.