X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S60_git;h=bb2c6f0cf5434c7364bc6b6e9ed0113f658836e4;hp=7a9ba7a1d0fbd4f060530a8f2ab119fdcc3ea202;hb=fafb75ea4a72475e688e32a3d61ac2e5565b9610;hpb=f4c19f9d51cd05cb465aba57c336ebe8334013fc 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