diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-22 20:58:40 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-22 20:58:40 +0300 |
commit | 7fbba216b0c1d7330c81794e2a93e602fd1da0c8 (patch) | |
tree | 724a319b70fcbbf277cf3c2e529c489af76a55eb /internal/p10k.zsh | |
parent | e92da0e32252c3787c05d8e23ddb59670370732a (diff) |
no_bg_nice to avoid spam on wsl
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index d9414aec..5951c223 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3909,6 +3909,7 @@ _p9k_precmd_impl() { fi fi elif (( _p9k_state_dump_scheduled || ! (_POWERLEVEL9K_DISABLE_INSTANT_PROMPT || $+_p9k_dumped_instant_prompt_sigs[$_p9k_instant_prompt_sig]) )); then + setopt no_bg_nice ( if ! (( _POWERLEVEL9K_DISABLE_INSTANT_PROMPT || $+_p9k_dumped_instant_prompt_sigs[$_p9k_instant_prompt_sig] )); then _p9k_set_instant_prompt @@ -4093,8 +4094,8 @@ _p9k_init_async_pump() { local setsid=${commands[setsid]:-/usr/local/opt/util-linux/bin/setsid} [[ -f $setsid ]] && setsid=${(q)setsid} || setsid= - cmd="$setsid zsh -dfxc ${(q)cmd} &!" - zsh -dfmxc $cmd </dev/null >&$_p9k_async_pump_fd 2>/dev/null &! + cmd="$setsid zsh -dfc ${(q)cmd} &!" + zsh --nobgnice -dfmc $cmd </dev/null >&$_p9k_async_pump_fd 2>/dev/null &! IFS='' read -t 5 -r -u $_p9k_async_pump_fd _p9k_async_pump_pid && (( _p9k_async_pump_pid )) |