Skip to content

Instantly share code, notes, and snippets.

@ulinkwo
Created November 20, 2013 07:58
Show Gist options
  • Save ulinkwo/7559387 to your computer and use it in GitHub Desktop.
Save ulinkwo/7559387 to your computer and use it in GitHub Desktop.
Install rbenv
#!/bin/sh
# Check out rbenv into ~/.rbenv.
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
# Add ~/.rbenv/bin to your $PATH for access to the rbenv command-line utility.
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
# Add rbenv init to your shell to enable shims and autocompletion.
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# Add plugin to install ruby
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone git://github.com/jf/rbenv-gemset.git ~/.rbenv/plugins/rbenv-gemset
git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/rbenv-bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment