Skip to content

Instantly share code, notes, and snippets.

@leotac
Last active July 18, 2020 23:18
Show Gist options
  • Save leotac/8383730 to your computer and use it in GitHub Desktop.
Save leotac/8383730 to your computer and use it in GitHub Desktop.
Install Ruby (with zsh)
#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