mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-25 00:21:58 +00:00
add p10k-on-post-prompt
This commit is contained in:
parent
232e312b4d
commit
1d0ee7cbdd
1 changed files with 12 additions and 1 deletions
|
@ -4775,7 +4775,18 @@ _p9k_wrap_zle_widget() {
|
||||||
|
|
||||||
function _p9k_zle_line_finish() {
|
function _p9k_zle_line_finish() {
|
||||||
_p9k__line_finished=
|
_p9k__line_finished=
|
||||||
if (( _p9k_reset_on_line_finish )); then
|
local -i reset=_p9k_reset_on_line_finish
|
||||||
|
|
||||||
|
if (( $+functions[p10k-on-post-prompt] )); then
|
||||||
|
__p9k_reset_state=1
|
||||||
|
p10k-on-post-prompt
|
||||||
|
if (( __p9k_reset_state == 2 )); then
|
||||||
|
reset=1
|
||||||
|
fi
|
||||||
|
__p9k_reset_state=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if (( reset )); then
|
||||||
_p9k_reset_prompt
|
_p9k_reset_prompt
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue