Created
September 13, 2012 09:50
-
-
Save teopeurt/3713287 to your computer and use it in GitHub Desktop.
scrip to install rbenv into environment
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
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
mkdir -p ~/.rbenv/plugins | |
cd ~/.rbenv/plugins | |
git clone git://github.com/sstephenson/ruby-build.git | |
rbenv install -l | |
rbenv install 1.9.3-rc1 --keep | |
rbenv global 1.9.3-rc1 | |
git clone -- git://github.com/carsomyr/rbenv-bundler.git \ | |
~/.rbenv/plugins/bundler | |
ruby -r bundler -e "puts RUBY_VERSION" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment