From: Amand Tihon Date: Wed, 23 Mar 2011 10:35:33 +0000 (+0100) Subject: Git prompt: recognize message from new versions X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=commitdiff_plain;h=fafb75ea4a72475e688e32a3d61ac2e5565b9610 Git prompt: recognize message from new versions --- diff --git a/S60_git b/S60_git index 7a9ba7a..bb2c6f0 100644 --- 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