Last active
February 23, 2023 22:38
-
-
Save pearofducks/5742720 to your computer and use it in GitHub Desktop.
rbenv installer for zsh (on debian and mac)
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
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 -)" | |
--- | |
==================================== | |
' |
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
rbenv install 2.0.0-p195 | |
rbenv global 2.0.0-p195 | |
rbenv rehash | |
gem install bundler | |
rbenv rehash |
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
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