1
0
mirror of https://github.com/mbollmann/fishpkgs.git synced 2024-10-27 20:34:02 +00:00
mbollmann_fishpkgs/functions/last_job_id.fish
2021-06-02 11:51:44 +02:00

4 lines
111 B
Fish

function last_job_id
jobs $argv | command awk '/^[0-9]+\t/ { print status = $1 } END { exit !status }'
end