I have ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] installed on an ubuntu system. I also have rvm installed which has ruby version ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]. I am using rvm installed ruby version to run my project. Can I make the rvm installed ruby as my default ruby environment? I used the command
rvm --default use 1.8.7
This command only made the rvm installed ruby version as default for the current login session. Once I logged out and logged in again the system shows the default system ruby version. Please help.
I found out the way to sort this problem if it helps anyone. I made a script test.sh as follows -
On running this script it will try to load rvm and then automatically switch to rvm installed ruby version.