# Run external work in the resource-limited slice where systemd is available. export def --wrapped main [command: string, ...args] { if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) { ^systemd-run --user --scope --same-dir --collect --quiet --slice=work.slice $command ...$args } else { run-external $command ...$args } }