This is a nushell pluging that attempts to start programs in the background.
❯ bg --help
Start a process in the background.
Usage:
> bg {flags} <command>
Flags:
-h, --help - Display the help message for this command
-a, --arguments <List(String)> - The arguments of the command.
-d, --debug - Debug mode
-p, --pid - Return process ID
Parameters:
command <string>: The command to start in the background.
Examples:
Start a command in the background
> bg some_command --arguments [arg1 --arg2 3]
If you start a program that writes to stdout, you'll get an error. This what I get on my Mac and I'm not really sure what it means. It could have nothing to do with writing to stdout?
❯ bg cat -a [cargo.toml] -d
Starting process: 'cat' with args '["cargo.toml"]'
cat: cargo.toml: Broken pipe (os error 32)