From a06f13f036580fbad31f89e0fd345db87a460e61 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 26 Mar 2012 15:31:01 -0400 Subject: [PATCH] [Fix #64] Remove the clean git-info style Free up `%C` by using `%(D.clean.dirty:%D)` instead. --- plugins/git/functions/git-info | 5 ----- plugins/git/style.zsh | 3 --- 2 files changed, 8 deletions(-) diff --git a/plugins/git/functions/git-info b/plugins/git/functions/git-info index 857513e..7efc2ea 100644 --- a/plugins/git/functions/git-info +++ b/plugins/git/functions/git-info @@ -139,8 +139,6 @@ function git-info { local branch_format local branch_formatted local branch_info - local clean - local clean_formatted local commit local commit_format local commit_formatted @@ -330,8 +328,6 @@ function git-info { if (( $dirty > 0 )); then zstyle -s ':omz:plugin:git:prompt' dirty 'dirty_format' zformat -f dirty_formatted "$dirty_format" "D:$dirty" - else - zstyle -s ':omz:plugin:git:prompt' clean 'clean_formatted' fi # Format prompts. @@ -350,7 +346,6 @@ function git-info { "A:$ahead_formatted" \ "B:$behind_formatted" \ "b:$branch_formatted" \ - "C:$clean_formatted" \ "c:$commit_formatted" \ "d:$deleted_formatted" \ "D:$dirty_formatted" \ diff --git a/plugins/git/style.zsh b/plugins/git/style.zsh index 9412308..29ac1f6 100644 --- a/plugins/git/style.zsh +++ b/plugins/git/style.zsh @@ -20,9 +20,6 @@ zstyle ':omz:plugin:git:prompt' behind 'behind:%B' # %b - Branch name. zstyle ':omz:plugin:git:prompt' branch '%b' -# %C - Indicator to notify of clean branch. -zstyle ':omz:plugin:git:prompt' clean 'clean' - # %c - SHA-1 hash. zstyle ':omz:plugin:git:prompt' commit 'commit:%c'