mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
show the right cwd when some part of it gets renamed (#2304)
This commit is contained in:
parent
9b47a22f13
commit
a69aa22fa8
1 changed files with 1 additions and 1 deletions
|
@ -1904,7 +1904,7 @@ prompt_dir() {
|
|||
else
|
||||
local key=
|
||||
fi
|
||||
if ! _p9k_cache_ephemeral_get $0 $e $i $_p9k__cwd || [[ $key != $_p9k__cache_val[1] ]]; then
|
||||
if ! _p9k_cache_ephemeral_get $0 $e $i $_p9k__cwd $p || [[ $key != $_p9k__cache_val[1] ]]; then
|
||||
local rtail=${(j./.)rparts[i,-1]}
|
||||
local parent=$_p9k__cwd[1,-2-$#rtail]
|
||||
_p9k_prompt_length $delim
|
||||
|
|
Loading…
Reference in a new issue