Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created August 5, 2013 19:03
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiew/6158481 to your computer and use it in GitHub Desktop.
Save jamiew/6158481 to your computer and use it in GitHub Desktop.
Uninstalling rvm in favor of rbenv + some rvm-flavored plugins
# 1. Edit ~/.bashrc and remove any rvm-loading code.
# 2. Then Add:
# Load rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export RBENV_ROOT=~/.rbenv
# Then:
# 3. Uninstall rvm
# 4. Restart shell/terminal
# 5. Install rbenv
brew install rbenv ruby-build
# Some useful plugins via rvm->rbenv transition
export RBENV_ROOT=~/.rbenv
mkdir -p $RBENV_ROOT
# a) rbenv-aliases: https://github.com/tpope/rbenv-aliases
git clone git://github.com/tpope/rbenv-aliases.git $RBENV_ROOT/plugins/rbenv-aliases
# b) rbenv-use: https://github.com/rkh/rbenv-use
git clone https://github.com/rkh/rbenv-whatis.git $RBENV_ROOT/plugins/rbenv-whatis
git clone https://github.com/rkh/rbenv-use.git $RBENV_ROOT/plugins/rbenv-use
# Install ruby
rbenv install 2.0.0-p247
# Make an alias for it
rbenv alias 2.0.0 2.0.0-p247
# Install basic gems
gem install bundler rak zeus
# Test out on your app
cd ~/dev/myapp
bundle install
# This just executes `rm -rf ~/.rvm`
rvm implode
# My system had some weird unlinked shim files left behind
cd /usr/local/bin
rm rvmsudo rvm* testrb ri rdoc rake irb gem erb
# Make sure you cleanup your ~/.bashrc
# and restart your shell/terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment