Last active
July 18, 2020 23:18
-
-
Save leotac/8383730 to your computer and use it in GitHub Desktop.
Install Ruby (with zsh)
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
| #Install rbenv and add it to .zshrc | |
| cd | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
| git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| source ~/.zshrc | |
| rbenv install 1.9.3-p0 | |
| rbenv local 1.9.3-p0 | |
| #or rbenv global 1.9.3-p0 if want to set it globally | |
| rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment