1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 13:30:07 +00:00

don't expand _p9k_dir when dir is hidden via 'p10k display'; see #952

This commit is contained in:
Roman Perepelitsa 2020-08-18 11:25:43 +02:00
parent ebfaae2ab6
commit 03ab8e9c7e

View file

@ -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}'