completions/unzip: Silence stderr

This commit is contained in:
pagedown 2022-10-21 10:45:49 +08:00 committed by Fabian Boehm
parent a4dc6dcb74
commit ad55a55734

View file

@ -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