Permalink
Browse files

have .bashrc load rvm , otherwise rvm function doesn't always get add…

…ed as user would expect

used this great script in a virtual machine install and had problem using rvm (in ubuntu)
adding this fixed it
  • Loading branch information...
1 parent 56687f4 commit 448c5c5fe541a95a6f4217ccc0a8ab0d97cc2af9 Greg Nelson committed Feb 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 railsready.sh
View
@@ -133,6 +133,7 @@ elif [ $whichRuby -eq 2 ] ; then
echo -e "\n=> Setting up RVM to load with new shells..."
#if RVM is installed as user root it goes to /usr/local/rvm/ not ~/.rvm
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> "$HOME/.bash_profile"
+ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> "$HOME/.bashrc"
echo "==> done..."
echo "=> Loading RVM..."
if [ -f ~/.bashrc ] ; then

0 comments on commit 448c5c5

Please sign in to comment.