Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit e95c861

Browse files
committed
Revert "Merge pull request holman#130 from pmcdaniel/fixGitStatusParsing"
This reverts commit cfd5d1b, reversing changes made to e28115a.
1 parent cfd5d1b commit e95c861

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎zsh/prompt.zsh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ git_branch() {
1414
}
1515

1616
git_dirty() {
17-
st=$($git status --porcelain 2>/dev/null)
18-
if [[ "$st" =~ ^fatal ]]
17+
st=$($git status 2>/dev/null | tail -n 1)
18+
if [[ $st == "" ]]
1919
then
2020
echo ""
2121
else
22-
if [[ $st == "" ]]
22+
if [[ "$st" =~ ^nothing ]]
2323
then
2424
echo "on %{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}"
2525
else

0 commit comments

Comments
 (0)