]> git.alrj.org Git - zsh.d.git/blobdiff - S60_git
Git prompt: recognize message from new versions
[zsh.d.git] / S60_git
diff --git a/S60_git b/S60_git
index 7a9ba7a1d0fbd4f060530a8f2ab119fdcc3ea202..bb2c6f0cf5434c7364bc6b6e9ed0113f658836e4 100644 (file)
--- a/S60_git
+++ b/S60_git
@@ -39,7 +39,8 @@ git_get_status() {
       gitstatus='+'
     fi
 
-    if [[ $(echo ${gitstat} | grep -c "^\# Changed but not updated:$") > 0 ]]; then
+    if [[ $(echo ${gitstat} | grep -c "^\# Changed but not updated:$") > 0 || \
+          $(echo ${gitstat} | grep -c "^\# Changes not staged for commit:$") > 0 ]]; then
       gitstatus="${gitstatus}!"
     fi