hi group,
when I log in on a certain machine, my $PATH has a value I cannot explain. Maybe you can help me understanding what is going on.
I use
rvm 1.21.17 (stable) by Wayne E. Seguin <wayneeseguingmail.com>, Michal Papis <mpapisgmail.com> [https://rvm.io/]The last lines of my .zprofile say
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
rvm_project_rvmrc=1
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM In my home directory, there is no .rvmrc. When I log in, $PATH is
rdgon@srv408bhZ echo $PATH
/home/rdgon/.rvm/gems/jruby-1.7.4/bin:/home/rdgon/.rvm/gems/jruby-1.7.4@global/bin:/home/rdgon/.rvm/rubies/jruby-1.7.4/bin:/home/rdgon/.rvm/bin:.:/usr/local/bin:/bin:/usr/bin:/usr/X11R6:/usr/X11R6/bin:/home/rdgon/bin:/usr/local/cvsutils/bin:/home/rdgon/cvs/util:/usr/lib/jruby/binI find it strange it contains various directories with ruby in it that are clearly put there by rvm. When I cd to a directory that contain a .rvmrc $PATH changes:
rdgon@srv408bhZ cd test
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /home/rdgon/test/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.
Using /home/rdgon/.rvm/gems/ruby-1.8.7-p374
rdgon@srv408bhZ echo $PATH
/home/rdgon/.rvm/gems/ruby-1.8.7-p374/bin:/home/rdgon/.rvm/gems/ruby-1.8.7-p374@global/bin:/home/rdgon/.rvm/rubies/ruby-1.8.7-p374/bin:/home/rdgon/.rvm/bin:.:/usr/local/bin:/bin:/usr/bin:/usr/X11R6:/usr/X11R6/bin:/home/rdgon/bin:/usr/local/cvsutils/bin:/home/rdgon/cvs/util:/usr/lib/jruby/binWhen I go back to my home directory, jruby-1.7.4 is in $PATH again. Who can explain what is going on? Is it possible to tell rvm not to add that to $PATH?
thanks in advance, Ruud