Skip to content

Instantly share code, notes, and snippets.

@ggoral
Last active August 29, 2015 14:19
Show Gist options
  • Save ggoral/9a8ce8bd5b94e4c9a13e to your computer and use it in GitHub Desktop.
Save ggoral/9a8ce8bd5b94e4c9a13e to your computer and use it in GitHub Desktop.
Install-rbenv-ubuntu
#!/bin/bash
if [ ! -x /usr/bin/git ]
then
echo "Install git please."
exit 1
fi
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
exec $SHELL -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment