Created
April 4, 2012 20:11
-
-
Save lucasmartins/2305223 to your computer and use it in GitHub Desktop.
Install RBenv+Ruby-Build
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
#!/usr/bin/env bash | |
# This is (kinda) a RBenv (plus ruby-build) installer for linux | |
# Just copy & paste off the install instructions from Github. | |
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 | |
source ~/.bash_profile | |
exec $SHELL | |
mkdir -p ~/.rbenv/plugins | |
cd ~/.rbenv/plugins | |
git clone git://github.com/sstephenson/ruby-build.git | |
exec $SHELL | |
rbenv rehash | |
rbenv help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment