Skip to content

Commit

Permalink
Feature: Use default set in $HOME first then ruby path.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Dec 17, 2009
1 parent dd88662 commit 47fd530
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/rvm
Expand Up @@ -37,7 +37,11 @@ if [[ "$rvm_loaded_flag" != "1" ]] || [[ "$rvm_reload_flag" = "1" ]] ; then

alias rvm-restart="source '${rvm_path}/scripts/rvm'"

if [[ -s "$rvm_path/default" ]] ; then source "$rvm_path/default" ; fi
if [[ -s "$HOME/.rvm/default" ]] ; then
source "$HOME/.rvm/default"
elif [[ -s "$rvm_path/default" ]] ; then
source "$rvm_path/default"
fi
else
echo -e "\$rvm_path is not set. rvm cannot load."
fi
Expand Down

0 comments on commit 47fd530

Please sign in to comment.