views:

10

answers:

1

I'm having trouble getting the Ruby Version Manager rvm to source from my Ubuntu 10.04 .profile. The code:

[[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"

...never does what I expect it to (i.e. give me the rvm program when I open a new shell or start a new session); but if I execute

source .profile

in a new shell after logging in, it works! Why will it work when I manually source it, but not automatically at login?

A: 

The RVM installation page has a series of things to check to test the initialization of RVM. Read the "Troubleshooting your Install" section at the end of the RVM installation page.

Greg