Added a check to see if rvm is installed

pull/13/head
Robert R Evans 2010-10-14 09:10:26 -07:00
parent e2505ee022
commit b8ce9e629c
1 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,8 @@ function git_prompt_info() {
function rvm_version_prompt {
rvm=$(rvm tools identifier) || return
echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX"
if which rvm &> /dev/null; then
rvm=$(rvm tools identifier) || return
echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX"
fi
}