mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-23 13:24:43 +00:00
adds back trunaction protection for /* in truncate_to_unique
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user