Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVMSUDO not using environment variables

I generated a set of env vars that I have set in my .bash_profile

that didn't work when using RVMSUDO

then i tried rvm export, and on viewing rvmsudo env, they gain rvm_old_$nameofvariable instead of $nameofvariable

i have also tried adding export name=value to the .rvmc in the project and that dosen't seem to get reflected.

Any suggestions?

like image 515
Jay Avatar asked Aug 22 '14 20:08

Jay


1 Answers

As per: https://github.com/wayneeseguin/rvm/blob/master/bin/rvmsudo#L83

You should prefix your environment variable with "http_" or "PATH" to let rvm pass this variable along.

like image 160
JAR.JAR.beans Avatar answered Oct 04 '22 22:10

JAR.JAR.beans