From b97b5ead31f7d34f764ac8666e40c214bb8e06dc Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Tue, 6 Oct 2020 05:54:06 +0200 Subject: [PATCH] fix: fish output redirection (#1247) Signed-off-by: Matej Vasek --- fish_completions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fish_completions.go b/fish_completions.go index 66a6357cb..eaae9bca8 100644 --- a/fish_completions.go +++ b/fish_completions.go @@ -164,7 +164,8 @@ end # so we can properly delete any completions provided by another script. # The space after the the program name is essential to trigger completion for the program # and not completion of the program name itself. -complete --do-complete "%[2]s " &> /dev/null +complete --do-complete "%[2]s " > /dev/null 2>&1 +# Using '> /dev/null 2>&1' since '&>' is not supported in older versions of fish. # Remove any pre-existing completions for the program since we will be handling all of them. complete -c %[2]s -e