From 33bc2bc312da7e901aa5c2a864cb5959a598fbf8 Mon Sep 17 00:00:00 2001 From: Artur Juraszek Date: Mon, 6 Apr 2020 22:06:25 +0200 Subject: [PATCH] Allow unzip versions not patched by Debian to enjoy .{jar,aar} completions A minor follow-up to #6866 (e658a88ab0066987fcec90c40b3e454836e75eb2). These file types should be properly handled by other unzip flavors too, regardless of Debian's/non-Linux Unixes' idiosyncrasies. --- share/completions/unzip.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/completions/unzip.fish b/share/completions/unzip.fish index af79a9283..aa0fb52e9 100644 --- a/share/completions/unzip.fish +++ b/share/completions/unzip.fish @@ -41,6 +41,10 @@ if unzip -v 2>/dev/null | string match -eq Debian else # all tokens should be zip files - complete -c unzip -xa '(__fish_complete_suffix .zip)' + complete -c unzip -xa '( + __fish_complete_suffix .zip + __fish_complete_suffix .jar + __fish_complete_suffix .aar + )' end