Skip to content

Commit bde9801

Browse files
committed
p10k: always show full git branch name
1 parent 67b09d4 commit bde9801

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

zsh/.p10k.zsh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,10 @@
363363
where=${where/#$P10K_BRANCH_SUBST_STRING/$P10K_BRANCH_SUBST_REPLACE}
364364
fi
365365

366-
# If local branch name or tag is at most 32 characters long, show it in full.
367-
# Otherwise show the first 12 … the last 12.
368-
(( $#where > 32 )) && where[13,-13]=""
366+
# NP- always show full branch name
367+
# # If local branch name or tag is at most 32 characters long, show it in full.
368+
# # Otherwise show the first 12 … the last 12.
369+
# (( $#where > 32 )) && where[13,-13]="…"
369370
res+="${clean}${where//\%/%%}" # escape %
370371

371372
# Show tracking branch name if it differs from local branch.

0 commit comments

Comments
 (0)