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
)
Move minimal-git theme into minimal theme
author
Mark Szymanski
<mrman208@me.com>
Sat, 25 Jun 2011 16:50:56 +0000
(11:50 -0500)
committer
Mark Szymanski
<mrman208@me.com>
Sat, 25 Jun 2011 16:50:56 +0000
(11:50 -0500)
themes/minimal/minimal.theme.bash
patch
|
blob
|
history
diff --git
a/themes/minimal/minimal.theme.bash
b/themes/minimal/minimal.theme.bash
index
8de4a6c
..
76cb24d
100644
(file)
--- a/
themes/minimal/minimal.theme.bash
+++ b/
themes/minimal/minimal.theme.bash
@@
-1,7
+1,12
@@
-prompt_setter() {
- PS1="${cyan}\W${normal} "
-}
+#!/usr/bin/env bash
+
+SCM_THEME_PROMPT_PREFIX="${cyan}(${green}"
+SCM_THEME_PROMPT_SUFFIX="${cyan})"
+SCM_THEME_PROMPT_DIRTY=" ${red}✗"
+SCM_THEME_PROMPT_CLEAN=" ${green}✓"
-PROMPT_COMMAND=prompt_setter
+prompt() {
+ PS1="$(scm_prompt_info)${reset_color} ${cyan}\W${reset_color} "
+}
-export PS3=">> "
+PROMPT_COMMAND=prompt