aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorSyphdias <syphdias+git@gmail.com>2019-05-27 00:38:54 +0300
committerSyphdias <syphdias+git@gmail.com>2019-05-27 00:38:54 +0300
commit837bb94aa18d4f295de603cadd7120f2ea279141 (patch)
treebdc74483821842f4f671e87aa70156cb82ed8d1f /powerlevel9k.zsh-theme
parentbead0ec05e18e6d27527c7cd29aa53cb6fbd2ce9 (diff)
adds back trunaction protection for /* in truncate_to_unique
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme1
1 files changed, 1 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index db828b43..9a07766a 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -836,6 +836,7 @@ prompt_dir() {
;;
truncate_to_unique)
local -i i=2 n=1 d=0
+ [[ $p == /* ]] && (( ++i ))
delim=${POWERLEVEL9K_SHORTEN_DELIMITER-'*'}
shortenlen=${POWERLEVEL9K_SHORTEN_DIR_LENGTH:-1}
d=${POWERLEVEL9K_SHORTEN_DELIMITER_LENGTH:-$#POWERLEVEL9K_SHORTEN_DELIMITER}