Why is the gem saved when set to ~ / .rvm after I switched to rbenv?

I decided to move from rvm to rbenv on my personal machine. Following rvm removal instructions, install rbenv and everything looks peachy. After restarting my shell session:

$ rbenv global
1.9.3-p0

$ ls .rvm
ls: cannot access .rvm: No such file or directory

$ rbenv exec gem list

*** LOCAL GEMS ***

A completely new installation in a new shell - RVM has long disappeared. Now when I install bundler

$ rbenv exec gem install bundler
Fetching: bundler-1.0.22.gem (100%)
Successfully installed bundler-1.0.22
1 gem installed

$ rbenv rehash

$ echo $?
0

$ rbenv which bundle
rbenv: bundle: command not found

What? In fact, look at this nonsense:

$ ls .rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.22/
bin  bundler.gemspec  CHANGELOG.md  ISSUES.md  lib  LICENSE  man  Rakefile  README.md  spec  UPGRADING.md

Somehow, somehow, the RVM still has its hooks. My files are ~/.bash*clean and

$ cat ~/.gemrc 
gem: --no-ri --no-rdoc

I do not have a system ruby, RVM is not installed globally (nothing in /etc/profile/, no /etc/profile.d/rvm.shand nothing in /etc/bash.bashrc), and I will completely lose it.

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.11
  - RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [i686-linux]
  - INSTALLATION DIRECTORY: /home/blt/.rvm/gems/ruby-1.9.3-p0
  - RUBY EXECUTABLE: /home/blt/.rbenv/versions/1.9.3-p0/bin/ruby
  - EXECUTABLE DIRECTORY: /home/blt/.rvm/gems/ruby-1.9.3-p0/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /home/blt/.rvm/gems/ruby-1.9.3-p0
     - /home/blt/.rvm/gems/ruby-1.9.3-p0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - http://rubygems.org/

, gem ~/.rvm?

+5
2

- ; grepping ,

unset GEM_HOME
unset GEM_PATH

~/.bashrc . , .

+3

- rvm ? , env vars .

:

bash -l -x -c 'echo'

bash , , . , bash.

, , , , ~/.gemrc?

+1

All Articles