mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
add a tip for disabling git branch truncation
This commit is contained in:
@@ -365,6 +365,7 @@
|
|||||||
|
|
||||||
# If local branch name or tag is at most 32 characters long, show it in full.
|
# If local branch name or tag is at most 32 characters long, show it in full.
|
||||||
# Otherwise show the first 12 … the last 12.
|
# Otherwise show the first 12 … the last 12.
|
||||||
|
# Tip: To always show local branch name in full without truncation, delete the next line.
|
||||||
(( $#where > 32 )) && where[13,-13]="…"
|
(( $#where > 32 )) && where[13,-13]="…"
|
||||||
res+="${clean}${where//\%/%%}" # escape %
|
res+="${clean}${where//\%/%%}" # escape %
|
||||||
|
|
||||||
|
|||||||
@@ -360,6 +360,7 @@
|
|||||||
|
|
||||||
# If local branch name or tag is at most 32 characters long, show it in full.
|
# If local branch name or tag is at most 32 characters long, show it in full.
|
||||||
# Otherwise show the first 12 … the last 12.
|
# Otherwise show the first 12 … the last 12.
|
||||||
|
# Tip: To always show local branch name in full without truncation, delete the next line.
|
||||||
(( $#where > 32 )) && where[13,-13]="…"
|
(( $#where > 32 )) && where[13,-13]="…"
|
||||||
res+="${clean}${where//\%/%%}" # escape %
|
res+="${clean}${where//\%/%%}" # escape %
|
||||||
|
|
||||||
|
|||||||
@@ -360,6 +360,7 @@
|
|||||||
|
|
||||||
# If local branch name or tag is at most 32 characters long, show it in full.
|
# If local branch name or tag is at most 32 characters long, show it in full.
|
||||||
# Otherwise show the first 12 … the last 12.
|
# Otherwise show the first 12 … the last 12.
|
||||||
|
# Tip: To always show local branch name in full without truncation, delete the next line.
|
||||||
(( $#where > 32 )) && where[13,-13]="…"
|
(( $#where > 32 )) && where[13,-13]="…"
|
||||||
res+="${clean}${where//\%/%%}" # escape %
|
res+="${clean}${where//\%/%%}" # escape %
|
||||||
|
|
||||||
|
|||||||
@@ -364,6 +364,7 @@
|
|||||||
|
|
||||||
# If local branch name or tag is at most 32 characters long, show it in full.
|
# If local branch name or tag is at most 32 characters long, show it in full.
|
||||||
# Otherwise show the first 12 … the last 12.
|
# Otherwise show the first 12 … the last 12.
|
||||||
|
# Tip: To always show local branch name in full without truncation, delete the next line.
|
||||||
(( $#where > 32 )) && where[13,-13]="…"
|
(( $#where > 32 )) && where[13,-13]="…"
|
||||||
res+="${clean}${where//\%/%%}" # escape %
|
res+="${clean}${where//\%/%%}" # escape %
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user