From 9e77b2f1c2e8187ca7871f53178ba92b59165806 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Mon, 5 Oct 2020 19:59:16 +0200 Subject: [PATCH] fix: fish output redirection 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