aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-09-20 12:44:07 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-09-20 12:44:07 +0300
commit8c695f9ad7a7be26127a04c6ae06174e9562f0c4 (patch)
tree8ced153147ed994ef08b50e213308b30cc29bd52 /internal/p10k.zsh
parent0067e0d4a1148593e3d74640579e555439ee9426 (diff)
survive faulty fifos
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index eeef6a90..f2add39e 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3438,7 +3438,10 @@ _p9k_deinit_async_pump() {
function _p9k_on_async_message() {
emulate -L zsh
setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst}
- (( ARGC == 1 )) || return
+ if (( ARGC != 1 )); then
+ _p9k_deinit_async_pump
+ return
+ fi
local msg='' IFS=''
while read -r -t -u $1 msg; do
[[ $__p9k_enabled == 1 && $1 == $_p9k_async_pump_fd ]] && eval $_p9k_async_pump_line$msg