rvm keeps ignoring my .rvmrc

pkazmierczak picture pkazmierczak · Feb 18, 2012 · Viewed 10.1k times · Source

I'm having some problems with my project. I keep an .rvmrc in my project's directory with the following config:

rvm use 1.9.2

and I put the following lines into my ~/.zshrc:

rvm_project_rvmrc=1
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm

Yet whenever I cd into my project's directory, ruby -v shows ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0].

What am I missing here?

Answer

iltempo picture iltempo · Feb 19, 2012

Another thing could be that rvm doesn't trust your rvmrc. Please trust it manually again with

rvm rvmrc trust DIR