Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4ac4049
)
Adding multiple SCM support to doubletime theme.
author
Jeff Carouth
<jcarouth@gmail.com>
Sat, 25 Jun 2011 15:05:25 +0000
(10:05 -0500)
committer
Jeff Carouth
<jcarouth@gmail.com>
Sat, 25 Jun 2011 15:05:25 +0000
(10:05 -0500)
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
patch
|
blob
|
history
diff --git
a/themes/doubletime/doubletime.theme.bash
b/themes/doubletime/doubletime.theme.bash
index
1237f80
..
e16ba66
100644
(file)
--- 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
- el
se
+ el
if [ $CHAR = $SCM_GIT_CHAR ]; then
echo "$(git_prompt_status)"
+ else
+ echo "[$(scm_prompt_info)]"
fi
}