Skip to content

Instantly share code, notes, and snippets.

@int128
Last active December 11, 2015 10:28
Show Gist options
  • Save int128/4586862 to your computer and use it in GitHub Desktop.
Save int128/4586862 to your computer and use it in GitHub Desktop.
migrates to rbenv
#!/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
#!/bin/bash -xe
sudo -i gem install chef
sudo -i rbenv rehash
#!/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