https://github.com/fdncred/nu_plugin_bg
A quick nushell plugin that spawns background tasks
https://github.com/fdncred/nu_plugin_bg
nushell nushell-plugin
Last synced: 8 months ago
JSON representation
A quick nushell plugin that spawns background tasks
- Host: GitHub
- URL: https://github.com/fdncred/nu_plugin_bg
- Owner: fdncred
- License: mit
- Created: 2023-12-19T19:00:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T12:38:26.000Z (over 1 year ago)
- Last Synced: 2025-06-14T05:03:25.034Z (8 months ago)
- Topics: nushell, nushell-plugin
- Language: Rust
- Homepage:
- Size: 123 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nu_plugin_bg
This is a nushell pluging that attempts to start programs in the background.
## Usage:
```nushell
❯ bg --help
Start a process in the background.
Usage:
> bg {flags}
Flags:
-h, --help - Display the help message for this command
-a, --arguments - The arguments of the command.
-d, --debug - Debug mode
-p, --pid - Return process ID
Parameters:
command : The command to start in the background.
Examples:
Start a command in the background
> bg some_command --arguments [arg1 --arg2 3]
```
## Known Issues
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?
```nushell
❯ bg cat -a [cargo.toml] -d
Starting process: 'cat' with args '["cargo.toml"]'
cat: cargo.toml: Broken pipe (os error 32)
```