Skip to content

Instantly share code, notes, and snippets.

View freepicheep's full-sized avatar

Friedrich Stoltzfus freepicheep

View GitHub Profile
@ddanier
ddanier / example1.nu
Last active February 23, 2026 17:05
nu shell jobd module - slim wrapper to run background jobs and keep a nice output
use jobd.nu
# Start background jobs
jobd spawn "background-job1" { bash -c 'while [ true ]; do echo "background running"; sleep 5; done' }
jobd spawn "background-job2" --restart { bash -c 'sleep 5' }
# Start main job we want to wait for
jobd spawn "main-job" { bash -c 'sleep 20' }
# Wait for main job to be done, end all other jobs when this happens
jobd wait "main-job" --end