mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:04:39 +08:00
Only define kill wrapper if we have a kill to wrap
This commit is contained in:
parent
2a24295e50
commit
dd7d432cd6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user