1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-23 15:41:57 +00:00
This commit is contained in:
romkatv 2019-05-19 11:59:50 +02:00
parent 5fb888cda9
commit 15e7d74087

View file

@ -895,7 +895,7 @@ prompt_dir() {
fi fi
;; ;;
truncate_to_unique) truncate_to_unique)
local parent="${PWD%/${(pj./.)parts[2,-1]}}" dir local parent="${PWD%/${(pj./.)parts[2,-1]}}" dir=''
local -i i=2 local -i i=2
for (( ; i < $#parts; ++i )); do for (( ; i < $#parts; ++i )); do
local dir=$parts[i] local dir=$parts[i]