summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc/common/prompt.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bashrc/common/prompt.sh b/bashrc/common/prompt.sh
index 0311505..0c14d84 100644
--- a/bashrc/common/prompt.sh
+++ b/bashrc/common/prompt.sh
@@ -81,8 +81,12 @@ __make_prompt() {
b=$(git symbolic-ref HEAD 2>/dev/null )
fi
- if git status | grep -q '^# Changed but not updated:' ; then
+ if git status | grep -q '^# Changes not staged for commit:' ; then
a="${a}*"
+ else
+ if git status | grep -q '^# Changed but not updated:' ; then
+ a="${a}*"
+ fi
fi
if git status | grep -q '^# Changes to be committed:' ; then