Skip to content

Commit

Permalink
Update p10k.zsh (Chrysostomus#33)
Browse files Browse the repository at this point in the history
The git branch name always had the last 2 letters truncated by the triangle style. So, I added two spaces to the variable in that line, so that the full branch name is readable. Regular "non-gitted" folders aren't affected
  • Loading branch information
Felipe-noob authored Feb 14, 2022
1 parent 737fba1 commit 22e8f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
# Otherwise show the first 12 … the last 12.
# Tip: To always show local branch name in full without truncation, delete the next line.
(( $#branch > 32 )) && branch[13,-13]="" # <-- this line
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%} "
fi

if [[ -n $VCS_STATUS_TAG
Expand Down

0 comments on commit 22e8f42

Please sign in to comment.