From ad55a557349497047e4637185fc1a890f3693c17 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 21 Oct 2022 10:45:49 +0800 Subject: [PATCH] completions/unzip: Silence stderr --- share/completions/unzip.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/unzip.fish b/share/completions/unzip.fish index 080ed29f8..0579a1e31 100644 --- a/share/completions/unzip.fish +++ b/share/completions/unzip.fish @@ -36,7 +36,7 @@ if unzip -v 2>/dev/null | string match -eq Debian # Files thereafter are either files to include or exclude from the operation set -l zipfile - complete -c unzip -n 'not __fish_is_nth_token 1' -xa '(unzip -l (eval set zipfile (__fish_first_token); echo $zipfile) | string replace -r --filter ".*:\S+\s+(.*)" "\$1")' + complete -c unzip -n 'not __fish_is_nth_token 1' -xa '(unzip -l (eval set zipfile (__fish_first_token); echo $zipfile) 2>/dev/null | string replace -r --filter ".*:\S+\s+(.*)" "\$1")' else