mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
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:
parent
038fea1a47
commit
1c9fe71240
1 changed files with 4 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue