adds back trunaction protection for /* in truncate_to_unique

pull/73/head
Syphdias 6 years ago
parent bead0ec05e
commit 837bb94aa1
No known key found for this signature in database
GPG Key ID: 6F62E6FB3E67F92D

@ -836,6 +836,7 @@ prompt_dir() {
;; ;;
truncate_to_unique) truncate_to_unique)
local -i i=2 n=1 d=0 local -i i=2 n=1 d=0
[[ $p == /* ]] && (( ++i ))
delim=${POWERLEVEL9K_SHORTEN_DELIMITER-'*'} delim=${POWERLEVEL9K_SHORTEN_DELIMITER-'*'}
shortenlen=${POWERLEVEL9K_SHORTEN_DIR_LENGTH:-1} shortenlen=${POWERLEVEL9K_SHORTEN_DIR_LENGTH:-1}
d=${POWERLEVEL9K_SHORTEN_DELIMITER_LENGTH:-$#POWERLEVEL9K_SHORTEN_DELIMITER} d=${POWERLEVEL9K_SHORTEN_DELIMITER_LENGTH:-$#POWERLEVEL9K_SHORTEN_DELIMITER}

Loading…
Cancel
Save