Your one-stop-cake-shop for everything Freshly Baked has to offer

fix(pm/minion/p10k): fix async worker restarting #92

merged opened by a.starrysky.fyi targeting main from private/minion/push-yoovuypynnmm

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

Labels

None yet.

requested-reviewers

None yet.

approved

None yet.

tested-working

None yet.

rejected

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:uuyqs6y3pwtbteet4swt5i5y/sh.tangled.repo.pull/3m2qtmd7kir22
+1 -1
Diff #0
+1 -1
packetmix/homes/minion/zsh/p10k.zsh
··· 1864 1864 typeset -g p10k_jj_status_stale=1 p10k_jj_status_updated= 1865 1865 p10k segment -f grey -c '$p10k_jj_status_stale' -e -t '$p10k_jj_status' 1866 1866 p10k segment -c '$p10k_jj_status_updated' -e -t '$p10k_jj_status' 1867 - async_job jj_status_worker jj_status $PWD || (register_async_worker && async_job jj_status_worker jj_status $PWD) 1867 + async_job jj_status_worker jj_status $PWD 2>/dev/null || { register_async_worker; async_job jj_status_worker jj_status $PWD } 1868 1868 } 1869 1869 1870 1870 # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt

History

1 round 0 comments
sign up or login to add to the discussion
a.starrysky.fyi submitted #0
1 commit
expand
fix(pm/minion/p10k): fix async worker restarting
expand 0 comments
pull request successfully merged