Skip to content

Commit 5782e2b

Browse files
author
Rayan Amal
authored
Update README.md for background tasks (nushell#826)
1 parent 660b55c commit 5782e2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/background_task/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ with-env { FOO: ($foo | to json) } {
4848
}
4949
```
5050

51-
## How can I reuse custom commands in a background task?
51+
### How can I reuse custom commands in a background task?
5252

5353
You can define these commands in a seperate module, like so:
5454

@@ -63,3 +63,6 @@ task spawn {
6363
foo bar
6464
}
6565
```
66+
## Troubleshooting
67+
68+
- On some setups (e.g. NixOS with `nu` installed as a binary in user's `$HOME`), `sh` (which `pueue` delegates tasks to run) might fail to find `nu` in the `$PATH`. In this case hard-coding the location of your nu binary in the `task spawn` function definiton in `task.nu` can solve the issue.

0 commit comments

Comments
 (0)