Created
August 25, 2011 08:34
-
-
Save thokra/1170236 to your computer and use it in GitHub Desktop.
Quick install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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