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:
27ea8b2
)
fixed debian dirty prompt bug
author
Florian Baumann
<flo@noqqe.de>
Mon, 22 Nov 2010 10:44:28 +0000
(11:44 +0100)
committer
Florian Baumann
<flo@noqqe.de>
Mon, 22 Nov 2010 10:44:28 +0000
(11:44 +0100)
themes/base.theme.bash
patch
|
blob
|
history
diff --git
a/themes/base.theme.bash
b/themes/base.theme.bash
index
9ae5d0e
..
e77d1d2
100644
(file)
--- a/
themes/base.theme.bash
+++ b/
themes/base.theme.bash
@@
-50,7
+50,7
@@
function prompt_char {
}
function git_prompt_info {
- if [[ -n $(git status -s 2> /dev/null) ]]; then
+ if [[ -n $(git status -s 2> /dev/null
|grep -v ^# |grep -v "working directory clean"
) ]]; then
state=${GIT_THEME_PROMPT_DIRTY:-$SCM_THEME_PROMPT_DIRTY}
else
state=${GIT_THEME_PROMPT_CLEAN:-$SCM_THEME_PROMPT_CLEAN}
@@
-81,4
+81,4
@@
function rvm_version_prompt {
rvm=$(rvm tools identifier) || return
echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX"
fi
-}
\ No newline at end of file
+}