Skip to content

Instantly share code, notes, and snippets.

@cfcosta
Created January 27, 2012 13:52
Show Gist options
  • Save cfcosta/1688889 to your computer and use it in GitHub Desktop.
Save cfcosta/1688889 to your computer and use it in GitHub Desktop.
if [ ! -d "$HOME/.rbenv" ]; then
echo "Installing rbenv"
git clone git://github.com/sstephenson/rbenv.git $HOME/.rbenv
fi
if [ ! -d "$HOME/.ruby-build" ]; then
echo "Installing ruby-build (inside rbenv)"
git clone git://github.com/sstephenson/ruby-build.git $HOME/.ruby-build
PREFIX="$HOME/.rbenv" $HOME/.ruby-build/install.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment