fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
593 B14 linesraw
1# localization: skip(private)
2function __fish_complete_job_pids --description "Print a list of job PIDs and their commands"
3    if 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
9        for jobpid in $jobpids
10            set -l cmd (jobs -c $jobpid)
11            printf "%s\tJob: %s\n" $jobpid $cmd
12        end
13    end
14end