From 6e8733ea98d09ca5d87f07a9e4a1b696b2a6fe0e Mon Sep 17 00:00:00 2001 From: Jeff Carouth Date: Sat, 25 Jun 2011 10:05:25 -0500 Subject: [PATCH] Adding multiple SCM support to doubletime theme. The doubletime theme improves the SCM status prompt for git. However, it accomplishes this at the expense of other SCM systems. This delegates prompt to the default bash-it prompt function when the SCM is not git. --- themes/doubletime/doubletime.theme.bash | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/doubletime/doubletime.theme.bash b/themes/doubletime/doubletime.theme.bash index 1237f80..e16ba66 100644 --- a/themes/doubletime/doubletime.theme.bash +++ b/themes/doubletime/doubletime.theme.bash @@ -17,11 +17,12 @@ fi doubletime_scm_prompt() { CHAR=$(scm_char) - if [ $CHAR = $SCM_NONE_CHAR ] - then + if [ $CHAR = $SCM_NONE_CHAR ]; then return - else + elif [ $CHAR = $SCM_GIT_CHAR ]; then echo "$(git_prompt_status)" + else + echo "[$(scm_prompt_info)]" fi } -- 2.17.1