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.
This commit is contained in:
@@ -17,11 +17,12 @@ fi
|
|||||||
|
|
||||||
doubletime_scm_prompt() {
|
doubletime_scm_prompt() {
|
||||||
CHAR=$(scm_char)
|
CHAR=$(scm_char)
|
||||||
if [ $CHAR = $SCM_NONE_CHAR ]
|
if [ $CHAR = $SCM_NONE_CHAR ]; then
|
||||||
then
|
|
||||||
return
|
return
|
||||||
else
|
elif [ $CHAR = $SCM_GIT_CHAR ]; then
|
||||||
echo "$(git_prompt_status)"
|
echo "$(git_prompt_status)"
|
||||||
|
else
|
||||||
|
echo "[$(scm_prompt_info)]"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user