Browse Source

Always format Git dirty

master
Colin Hebert 13 years ago committed by Sorin Ionescu
parent
commit
5b6855e3eb
  1. 8
      modules/git/functions/git-info

8
modules/git/functions/git-info

@ -29,7 +29,7 @@
# zstyle ':omz:module:git' deleted 'deleted:%d' # zstyle ':omz:module:git' deleted 'deleted:%d'
# #
# # %D - Indicator to notify of dirty files. # # %D - Indicator to notify of dirty files.
# zstyle ':omz:module:git' dirty 'dirty:%D' # zstyle ':omz:module:git' dirty '%(D.clean.dirty:%D)'
# #
# # %m - Indicator to notify of modified files. # # %m - Indicator to notify of modified files.
# zstyle ':omz:module:git' modified 'modified:%m' # zstyle ':omz:module:git' modified 'modified:%m'
@ -376,10 +376,8 @@ function git-info {
fi fi
# Format dirty. # Format dirty.
if (( $dirty > 0 )); then zstyle -s ':omz:module:git' dirty 'dirty_format'
zstyle -s ':omz:module:git' dirty 'dirty_format' zformat -f dirty_formatted "$dirty_format" "D:$dirty"
zformat -f dirty_formatted "$dirty_format" "D:$dirty"
fi
# Format info. # Format info.
zstyle -a ':omz:module:git' info 'info_formats' zstyle -a ':omz:module:git' info 'info_formats'

Loading…
Cancel
Save