fork/fish-shell

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

Johannes Altmanningershare/config.fish: lazy-load __fish_expand_pid_argse59a61e5e

master
383 B14 linesraw
1# localization: skip(private)
2# Allow %n job expansion to be used with fg/bg/wait
3# `jobs` is the only one that natively supports job expansion
4function __fish_expand_pid_args
5    for arg in $argv
6        if string match -qr '^%\d+$' -- $arg
7            if not jobs -p $arg
8                return 1
9            end
10        else
11            printf "%s\n" $arg
12        end
13    end
14end