Skip to content

Instantly share code, notes, and snippets.

@alfa-jpn
Created July 2, 2014 15:27
Show Gist options
  • Select an option

  • Save alfa-jpn/95b05b499e863628adf5 to your computer and use it in GitHub Desktop.

Select an option

Save alfa-jpn/95b05b499e863628adf5 to your computer and use it in GitHub Desktop.
Install rbenv and ruby-build for nitrous.io
#!/bin/bash
# rbenv https://github.com/sstephenson/rbenv
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv
# ruby-build https://github.com/sstephenson/ruby-build
git clone git@github.com:sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# config shell
echo 'export RBENV_ROOT="$HOME/.rbenv"' >> ~/.bash_profile
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# restart shell
exec $SHELL -l
# check version
rbenv --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment