Browse files

Source .profile from .bashrc or .bash_profile

  • Loading branch information...
1 parent c56e361 commit fd6f481dadf41cbc772b543afaf5412f4a4e963c @joshfng committed Mar 2, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 railsready.sh
View
2 railsready.sh
@@ -132,9 +132,11 @@ 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
if [ -f ~/.bashrc ] ; then
+ echo 'source ~/.profile'
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> "$HOME/.bashrc"
fi
if [ -f ~/.bash_profile ] ; then
+ echo 'source ~/.profile'
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> "$HOME/.bash_profile"
fi
echo "==> done..."

0 comments on commit fd6f481

Please sign in to comment.