From fa05cad1b148ab06c81582689762d00249fdf6ce Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Wed, 11 Apr 2012 19:21:46 +0100 Subject: [PATCH] Format git dirty even if there is no dirty files Fixes a part of #131 --- modules/git/functions/git-info | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/git/functions/git-info b/modules/git/functions/git-info index df7b29c2..1b8b6d8d 100644 --- a/modules/git/functions/git-info +++ b/modules/git/functions/git-info @@ -376,10 +376,8 @@ function git-info { fi # Format dirty. - if (( $dirty > 0 )); then - zstyle -s ':omz:module:git' dirty 'dirty_format' - zformat -f dirty_formatted "$dirty_format" "D:$dirty" - fi + zstyle -s ':omz:module:git' dirty 'dirty_format' + zformat -f dirty_formatted "$dirty_format" "D:$dirty" # Format info. zstyle -a ':omz:module:git' info 'info_formats'