Only define kill wrapper if we have a kill to wrap

This commit is contained in:
Fabian Boehm 2023-01-29 14:44:45 +01:00
parent 2a24295e50
commit dd7d432cd6

View File

@ -228,8 +228,12 @@ function fg
builtin fg (__fish_expand_pid_args $argv)[-1]
end
function kill
command kill (__fish_expand_pid_args $argv)
if command -q kill
# Only define this if something to wrap exists
# this allows a nice "commad not found" error to be triggered.
function kill
command kill (__fish_expand_pid_args $argv)
end
end
# As last part of initialization, source the conf directories.