job-security is a tool that lets you put your running programs into background, then bring them to the foreground anywhere you want.
It also supplements shells that doesn't natively support job control, such as nushell, elvish, etc.
bash
cargo install job-security
bash
jobs run command -- arguments
bash
jobs continue
bash
jobs list
jobs
tries to preserve the current working directory, and environment variables for the commands it spawns, but not much more. If you define aliases, functions, etc. in your shell, those will not be visible to the command you run.jobs
, as they will be automatically wrap in zsh -c
or bash -c
. But due to the limitations of other shells (e.g. nushell), commands are run as is, and not interpreted.