adds back trunaction protection for /* in truncate_to_unique
This commit is contained in:
parent
bead0ec05e
commit
837bb94aa1
|
@ -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…
Reference in New Issue