Skip to content

Instantly share code, notes, and snippets.

@mtunjic
Created February 25, 2014 18:28
Show Gist options
  • Save mtunjic/9214787 to your computer and use it in GitHub Desktop.
Save mtunjic/9214787 to your computer and use it in GitHub Desktop.
install ruby
#!/bin/bash
set -e
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
source ~/.bash_profile
source ~/.zshrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.1.1
rbenv install 1.9.3-p545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment