Last active
December 11, 2015 10:28
-
-
Save int128/4586862 to your computer and use it in GitHub Desktop.
migrates to rbenv
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 -xe | |
cd /usr/local | |
sudo git clone git://github.com/sstephenson/rbenv.git | |
cd rbenv | |
sudo mkdir shims versions plugins | |
cd plugins | |
sudo git clone git://github.com/sstephenson/ruby-build.git | |
cat <<EOF | sudo tee /etc/profile.d/rbenv.sh | |
export RBENV_ROOT='/usr/local/rbenv' | |
export PATH="\$RBENV_ROOT/bin:\$PATH" | |
eval "\$(rbenv init -)" | |
EOF | |
cd | |
sudo -i rbenv install 1.9.3-p374 | |
sudo -i rbenv global 1.9.3-p374 |
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 -xe | |
sudo -i gem install chef | |
sudo -i rbenv rehash |
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 -xe | |
sudo groupdel rvm | |
sudo rm /usr/local/bin/chef-client | |
rvmsudo -i rvm implode | |
sudo rm /etc/rvmrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment