From 84339d5636ce38a559dd5d7b74c138bbc03dbbf9 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 17 Jan 2019 09:44:35 +0100 Subject: [PATCH] Don't wrap functions with themselves Our weird %-expanding function wrappers around kill et all defined "--wraps" for the same name. As it turns out, fish follows that one, and executes the completion multiple times. I didn't notice because these tend to be rather quick on linux, but on macOS that's apparently a real issue. Fixes #5541. [ci skip] --- share/config.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/config.fish b/share/config.fish index 27e6222a3..18242e06a 100644 --- a/share/config.fish +++ b/share/config.fish @@ -259,23 +259,23 @@ function __fish_expand_pid_args end end -function bg --wraps bg +function bg builtin bg (__fish_expand_pid_args $argv) end -function fg --wraps fg +function fg builtin fg (__fish_expand_pid_args $argv) end -function kill --wraps kill +function kill command kill (__fish_expand_pid_args $argv) end -function wait --wraps wait +function wait builtin wait (__fish_expand_pid_args $argv) end -function disown --wraps disown +function disown builtin disown (__fish_expand_pid_args $argv) end