From ba5e7c9268ab1ed67d57e9eac48ce351b7dbde7a Mon Sep 17 00:00:00 2001 From: Robert Rauch Date: Sat, 6 Feb 2016 21:19:30 +0100 Subject: [PATCH] Speed up $PROMPT_COMMAND by using rvm-prompt Running `rvm tools identifier` seems to be really slow. Using [`rvm-prompt`](https://rvm.io/workflow/prompt) greatly speeds up the evaluation of `$PROMPT_COMMAND`. --- themes/base.theme.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index fffe4b7b..993e1922 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -268,8 +268,8 @@ function hg_prompt_vars { function rvm_version_prompt { if which rvm &> /dev/null; then - rvm=$(rvm tools identifier) || return - if [ $rvm != "system" ]; then + rvm=$(rvm-prompt) || return + if [ -n "$rvm" ]; then echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX" fi fi