Skip to content

Instantly share code, notes, and snippets.

@lsaffie
Created July 19, 2012 02:04
Show Gist options
  • Save lsaffie/3140299 to your computer and use it in GitHub Desktop.
Save lsaffie/3140299 to your computer and use it in GitHub Desktop.
#!/bin/bash
#bash script to setup rbenv in one shot.
#And as a bonus, I've thrown in bundler
sudo apt-get -y install git-core curl
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
. ~/.bash_profile
rbenv bootstrap-ubuntu-10-04
rbenv install 1.9.3-p194
rbenv rehash
rbenv global 1.9.3-p194
rbenv update
gem install bundler --no-ri --no-rdoc
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment