diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-08-18 12:25:43 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-08-18 12:25:43 +0300 |
commit | 03ab8e9c7ed3de37d13706bc931524fefe763c32 (patch) | |
tree | e1c49507d7a91da93390048353a7753a0e6412df /internal/p10k.zsh | |
parent | ebfaae2ab665e747b368530a4788138b5ab05134 (diff) |
don't expand _p9k_dir when dir is hidden via 'p10k display'; see #952
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 5a1ecdaa..07ec912c 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5589,7 +5589,7 @@ function _p9k_set_prompt() { fi fi _p9k__prompt+='${${_p9k__d::=$((_p9k__m-_p9k__h))}+}' - _p9k__prompt+='${_p9k__lprompt/\%\{d\%\}*\%\{d\%\}/'$_p9k__dir'}' + _p9k__prompt+='${_p9k__lprompt/\%\{d\%\}*\%\{d\%\}/${_p9k__'$_p9k__line_index'ldir-'$_p9k__dir'}}' _p9k__prompt+='${${_p9k__m::=$((_p9k__d+_p9k__h))}+}' else _p9k__prompt+='${_p9k__lprompt}' |