Making RVM and NVM Play Nice with PATH

I love environment managers like virtualenv (Python) and RVM (Ruby). I have been tooling around with node.js lately and was excited to find nvm.

After installing NVM and activating a non-system node RVM started complaining that it wasn't the first thing in the PATH environment variable.

This is caused by nvm when it switches to a non-system node and puts nvm as the first item of PATH. This isn't harmful, it just causes RVM to complain.

$> ls
Gemfile    app          config       db           log          test         vendor
Gemfile.lock Rakefile     bin    lib          public       tmp

Warning! PATH is not properly set up, '/Users/naisent/.rvm/gems/ruby-2.3.0@tmwsd/bin'
is not at first place, usually this is caused by shell initialization files -
check them for 'PATH=...' entries,

Luckily, RVM has a configuration varible to turn off the error message. Thanks to this post on StackOverflow for pointing out that configuration variable in RVM. Simply adding rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file and the warning is suppressed!