From 135436c306eeb69b8072b3d54d5f2cd4a580eb92 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Thu, 9 Oct 2025 09:19:02 +0000 Subject: [PATCH] fix(pm/minion/p10k): fix async worker restarting Change-Id: wopxpqymlxvzprpzpwqvvxpmonzlrktr Previously we were using a subshell to group our commands, which can't be used to run an async worker as the async worker is tied to a shell. Instead, we should be using a command group. We also need to silence errors on the first job invocation or it'll still print out --- packetmix/homes/minion/zsh/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packetmix/homes/minion/zsh/p10k.zsh b/packetmix/homes/minion/zsh/p10k.zsh index 43d42b50..985af73b 100644 --- a/packetmix/homes/minion/zsh/p10k.zsh +++ b/packetmix/homes/minion/zsh/p10k.zsh @@ -1864,7 +1864,7 @@ typeset -g p10k_jj_status_stale=1 p10k_jj_status_updated= p10k segment -f grey -c '$p10k_jj_status_stale' -e -t '$p10k_jj_status' p10k segment -c '$p10k_jj_status_updated' -e -t '$p10k_jj_status' - async_job jj_status_worker jj_status $PWD || (register_async_worker && async_job jj_status_worker jj_status $PWD) + async_job jj_status_worker jj_status $PWD 2>/dev/null || { register_async_worker; async_job jj_status_worker jj_status $PWD } } # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt -- 2.43.0