Merge pull request #662 from rauchrob/patch-1

Speed up $PROMPT_COMMAND by using rvm-prompt
This commit is contained in:
Nils Winkler
2016-02-08 08:07:07 +01:00

View File

@@ -268,8 +268,8 @@ function hg_prompt_vars {
function rvm_version_prompt { function rvm_version_prompt {
if which rvm &> /dev/null; then if which rvm &> /dev/null; then
rvm=$(rvm tools identifier) || return rvm=$(rvm-prompt) || return
if [ $rvm != "system" ]; then if [ -n "$rvm" ]; then
echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX" echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX"
fi fi
fi fi