diff options
author | Syphdias <syphdias+git@gmail.com> | 2019-05-27 00:38:54 +0300 |
---|---|---|
committer | Syphdias <syphdias+git@gmail.com> | 2019-05-27 00:38:54 +0300 |
commit | 837bb94aa18d4f295de603cadd7120f2ea279141 (patch) | |
tree | bdc74483821842f4f671e87aa70156cb82ed8d1f /powerlevel9k.zsh-theme | |
parent | bead0ec05e18e6d27527c7cd29aa53cb6fbd2ce9 (diff) |
adds back trunaction protection for /* in truncate_to_unique
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 1 |
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} |