Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install/update rbenv
# Download rbenv
if [ ! -d ~/.rbenv ]; then
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
fi
cd ~/.rbenv
git reset --hard
git pull origin master
# Download ruby-build
if [ ! -d ~/.rbenv/plugins/ruby-build ]; then
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
fi
cd ~/.rbenv/plugins/ruby-build
git reset --hard
git pull origin master
# Setup rbenv
cd ~
export HOME=`pwd`
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
rbenv --version
rbenv versions
rbenv install --list
@nateritter

This comment has been minimized.

Copy link

@nateritter nateritter commented Aug 12, 2019

Thank you! This was exactly what I needed!

@ldelbel

This comment has been minimized.

Copy link

@ldelbel ldelbel commented Mar 21, 2021

Thank you man, that was extremely helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment