job id
for experimental
Get id of current job.
Signature
> job id {flags}
Input/output types:
input | output |
---|---|
nothing | int |
Examples
Get id of current job
> job id
Notes
This command returns the job id for the current background job. The special id 0 indicates that this command was not called from a background job thread, and was instead spawned by main nushell execution thread.