fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2function __fish_complete_job_pids --description"Print a list of job PIDs and their commands" 3if set -l jobpids( jobs -p) 4# when run at the commandline, the first line of output is a header, but 5# that doesn't seem to be printed when you run jobs in a subshell 6 7# then we can use the jobs command again to get the corresponding 8# command to provide as a description for each job PID 9for jobpidin $jobpids 10set -l cmd( jobs -c$jobpid ) 11printf "%s\tJob: %s\n" $jobpid $cmd 12end 13end 14end