mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
adds back trunaction protection for /* in truncate_to_unique
This commit is contained in:
parent
bead0ec05e
commit
837bb94aa1
1 changed files with 1 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue