Created
August 5, 2013 19:03
-
-
Save jamiew/6158481 to your computer and use it in GitHub Desktop.
Uninstalling rvm in favor of rbenv + some rvm-flavored plugins
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
# 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 |
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
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 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
# 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