Created
February 25, 2014 18:28
-
-
Save mtunjic/9214787 to your computer and use it in GitHub Desktop.
install ruby
This file contains 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
#!/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