Skip to content

Instantly share code, notes, and snippets.

@hmaack
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save hmaack/9137909 to your computer and use it in GitHub Desktop.

Select an option

Save hmaack/9137909 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install rbenv
# https://github.com/sstephenson/rbenv
cd ~
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile
echo 'eval "$(rbenv init -)"' >> .bash_profile
# reload .bash_profile
source ~/.bash_profile
# install ruby-build
# https://github.com/sstephenson/ruby-build
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
sudo ./install.sh
# list available ruby versions
ruby-build --definitions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment