From: Robert R Evans Date: Thu, 14 Oct 2010 16:10:26 +0000 (-0700) Subject: Added a check to see if rvm is installed X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=b8ce9e629cbbfa7906416db5a65ec2d36e9dc6e1;p=common%2Fbash_it.git Added a check to see if rvm is installed --- diff --git a/themes/base.theme.bash b/themes/base.theme.bash index d14e42b..30fa539 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -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 } \ No newline at end of file