Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayan Amal authored Apr 28, 2024
1 parent 660b55c commit 64e4497
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/background_task/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ with-env { FOO: ($foo | to json) } {
}
```

## How can I reuse custom commands in a background task?
### How can I reuse custom commands in a background task?

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

Expand All @@ -63,3 +63,6 @@ task spawn {
foo bar
}
```
## Troubleshooting

- 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 comments on commit 64e4497

Please sign in to comment.