Created
July 2, 2014 15:27
-
-
Save alfa-jpn/95b05b499e863628adf5 to your computer and use it in GitHub Desktop.
Install rbenv and ruby-build for nitrous.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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