summaryrefslogtreecommitdiff
path: root/config/p10k-rainbow.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-04-09 11:33:03 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-04-09 11:33:03 +0300
commit9d462b0ba99d11dc4ccf0253900dab87db7b1ddb (patch)
tree20bbce5bb1043e88990662f65541a96703f2acd1 /config/p10k-rainbow.zsh
parente59723872c86972d98c98cc3b52f031e0ad407c2 (diff)
add a tip for disabling git branch truncation
Diffstat (limited to 'config/p10k-rainbow.zsh')
-rw-r--r--config/p10k-rainbow.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh
index 412332a9..175d374f 100644
--- a/config/p10k-rainbow.zsh
+++ b/config/p10k-rainbow.zsh
@@ -364,6 +364,7 @@
# If local branch name or tag is at most 32 characters long, show it in full.
# 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]="…"
res+="${clean}${where//\%/%%}" # escape %