config.fish: loop over bg, fg, etc. wrappers

Now that we can do `builtin $x`, this code can be simplified.
This commit is contained in:
Aaron Gyes 2019-02-10 15:01:38 -08:00
parent 038fea1a47
commit 1c9fe71240

View file

@ -259,24 +259,10 @@ function __fish_expand_pid_args
end
end
function bg
builtin bg (__fish_expand_pid_args $argv)
end
function fg
builtin fg (__fish_expand_pid_args $argv)
end
function kill
command kill (__fish_expand_pid_args $argv)
end
function wait
builtin wait (__fish_expand_pid_args $argv)
end
function disown
builtin disown (__fish_expand_pid_args $argv)
for jobcmd in bg fg kill wait disown
function $jobcmd -V jobcmd
builtin $jobcmd (__fish_expand_pid_args $argv)
end
end
# As last part of initialization, source the conf directories.