From f4ab21b8f21e64140537bc062cfdb734735a97fe Mon Sep 17 00:00:00 2001 From: Jimmy Oliger Date: Tue, 27 Dec 2016 15:29:27 +0100 Subject: [PATCH] Fix git status color --- zsh/prompt.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index 6313b3e..7c82bc6 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -24,7 +24,7 @@ git_status() { if [[ $st == "" ]]; then return else - if [[ $st == "nothing to commit, working directory clean" ]]; then + if [[ $st == "nothing to commit, working tree clean" ]]; then echo "%{$fg_bold[green]%}●%{$reset_color%} " else echo "%{$fg_bold[red]%}●%{$reset_color%} " @@ -34,4 +34,3 @@ git_status() { PROMPT='$(git_status)%3c$(git_branch) ${indicator} %{$reset_color%}' -