Skip to content

Instantly share code, notes, and snippets.

@thokra
Created August 25, 2011 08:34
Show Gist options
  • Save thokra/1170236 to your computer and use it in GitHub Desktop.
Save thokra/1170236 to your computer and use it in GitHub Desktop.
Quick install
#!/usr/bin/env bash
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
echo "Installing Homebrew, a good OS X package manager ..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
brew update
echo "Installing Postgres, a good open source relational database ..."
brew install postgres --no-python
echo "Installing Mongodb, a good key-value database ..."
brew install mongodb
echo "Installing RVM (Ruby Version Manager) ..."
curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latest
echo "
# RVM
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.profile
source ~/.profile
echo "Installing Ruby 1.9.2 stable and making it the default Ruby ..."
rvm install 1.9.2-p290
rvm use 1.9.2 --default
echo "Installing Bundler for managing Ruby libraries ..."
gem install bundler --no-rdoc --no-ri
echo "Install Pow"
curl get.pow.cx | sh
echo "Install PowApp if you like"
open "http://github.com/Terw/PowApp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment