Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /usr/share/fish/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/fish/functions/__fish_complete_job_pids.fish
function __fish_complete_job_pids --description "Print a list of job PIDs and their commands"
    if set -l jobpids (jobs -p)
        # when run at the commandline, the first line of output is a header, but
        # that doesn't seem to be printed when you run jobs in a subshell

        # then we can use the jobs command again to get the corresponding
        # command to provide as a description for each job PID
        for jobpid in $jobpids
            set -l cmd (jobs -c $jobpid)
            printf "%s\tJob: %s\n" $jobpid $cmd
        end
    end
end

Hry