Skip to content

Instantly share code, notes, and snippets.

@teopeurt
Created September 13, 2012 09:50
Show Gist options
  • Save teopeurt/3713287 to your computer and use it in GitHub Desktop.
Save teopeurt/3713287 to your computer and use it in GitHub Desktop.
scrip to install rbenv into environment
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