diff options
-rwxr-xr-x | bash-git-prompt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bash-git-prompt b/bash-git-prompt index 8306481..6a7a95a 100755 --- a/bash-git-prompt +++ b/bash-git-prompt @@ -16,10 +16,9 @@ set -o pipefail PS1="$PS1Start" -if branch=$(git branch 2>/dev/null | grep '^\*' | sed "s|^\*\s*||") +if branch=$(git branch 2>/dev/null | grep '^\*' | sed "s|^\*\s*||") && status=$(git status --porcelain 2> /dev/null) then PS1="$PS1 " - status=$(git status --porcelain) echo "$status" | grep -q "^.\S" && wtClean=false || wtClean=true echo "$status" | grep -q "^\S" && idxClean=false || idxClean=true if $mitFarbe |