Skip to content

Instantly share code, notes, and snippets.

@dekart
Created March 27, 2013 05:17
Show Gist options
  • Save dekart/5251859 to your computer and use it in GitHub Desktop.
Save dekart/5251859 to your computer and use it in GitHub Desktop.
cd ~
curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
export PATH="$HOME/.rbenv/bin:$PATH"
echo '
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
' >> ~/.bashrc
rbenv install 1.9.3-p385
rbenv global 1.9.3-p385
rbenv rehash
echo 'Done!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment