We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98d69fc commit 1ff1099Copy full SHA for 1ff1099
modules/git/functions/git-info
@@ -417,6 +417,11 @@ function git-info {
417
if (( dirty > 0 )); then
418
zstyle -s ':prezto:module:git:info:dirty' format 'dirty_format'
419
zformat -f dirty_formatted "$dirty_format" "D:$dirty"
420
+ # Overwrite branch format to use dirty-branch format
421
+ zstyle -s ':prezto:module:git:info:dirty-branch' format 'branch_format'
422
+ if [[ -n "$branch" && -n "$branch_format" ]]; then
423
+ zformat -f branch_formatted "$branch_format" "b:$branch"
424
+ fi
425
else
426
zstyle -s ':prezto:module:git:info:clean' format 'clean_formatted'
427
fi
0 commit comments