Skip to content

Commit

Permalink
Fix git status color
Browse files Browse the repository at this point in the history
  • Loading branch information
oliger committed Dec 27, 2016
1 parent d81b00f commit f4ab21b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zsh/prompt.zsh
Expand Up @@ -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%} "
Expand All @@ -34,4 +34,3 @@ git_status() {

PROMPT='$(git_status)%3c$(git_branch)
${indicator} %{$reset_color%}'

0 comments on commit f4ab21b

Please sign in to comment.