mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
process ready replies from worker synchornously in precmd
This commit is contained in:
parent
e97a6c6701
commit
f1bb5601fe
2 changed files with 4 additions and 0 deletions
|
@ -4931,6 +4931,8 @@ _p9k_precmd_impl() {
|
|||
if [[ $preexec_functions[-1] != _p9k_preexec2 && $preexec_functions[(I)_p9k_preexec2] != 0 ]]; then
|
||||
preexec_functions=(${(@)preexec_functions:#_p9k_preexec2} _p9k_preexec2)
|
||||
fi
|
||||
|
||||
_p9k_worker_receive
|
||||
}
|
||||
|
||||
_p9k_trapint() {
|
||||
|
|
|
@ -121,6 +121,8 @@ function _p9k_worker_receive() {
|
|||
emulate -L zsh
|
||||
setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst} no_aliases
|
||||
|
||||
[[ -z $_p9k__worker_resp_fd ]] && return
|
||||
|
||||
{
|
||||
(( $# <= 1 )) || return
|
||||
|
||||
|
|
Loading…
Reference in a new issue