Skip to content

Instantly share code, notes, and snippets.

@pearofducks
Last active February 23, 2023 22:38
Show Gist options
  • Save pearofducks/5742720 to your computer and use it in GitHub Desktop.
Save pearofducks/5742720 to your computer and use it in GitHub Desktop.
rbenv installer for zsh (on debian and mac)
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential git-core libssl1.0.0 libssl-dev libreadline-dev zlib1g-dev
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo '
====================================
You should add this stuff to your zshrc now,
then reload shell and run p2!
---
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
---
====================================
'
rbenv install 2.0.0-p195
rbenv global 2.0.0-p195
rbenv rehash
gem install bundler
rbenv rehash
Do these commands
$ sh rbenv-zsh-install-p1.sh
[add items to zshrc]
[restart shell]
$ sh rbenv-zsh-install-p2.sh
[restart shell]
$ ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment