mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-14 09:00:07 +00:00
do not shorten the last dir in truncate_to_unique
This commit is contained in:
parent
fece2f1fb4
commit
5fb888cda9
1 changed files with 1 additions and 1 deletions
|
@ -897,7 +897,7 @@ prompt_dir() {
|
||||||
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]
|
||||||
local -i j=1
|
local -i j=1
|
||||||
for (( ; j <= $#dir; ++j )); do
|
for (( ; j <= $#dir; ++j )); do
|
||||||
|
|
Loading…
Reference in a new issue