don't expand _p9k_dir when dir is hidden via 'p10k display'; see #952
parent
ebfaae2ab6
commit
03ab8e9c7e
|
@ -5589,7 +5589,7 @@ function _p9k_set_prompt() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
_p9k__prompt+='${${_p9k__d::=$((_p9k__m-_p9k__h))}+}'
|
_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))}+}'
|
_p9k__prompt+='${${_p9k__m::=$((_p9k__d+_p9k__h))}+}'
|
||||||
else
|
else
|
||||||
_p9k__prompt+='${_p9k__lprompt}'
|
_p9k__prompt+='${_p9k__lprompt}'
|
||||||
|
|
Loading…
Reference in New Issue