Allow unzip versions not patched by Debian to enjoy .{jar,aar} completions

A minor follow-up to #6866 (e658a88ab0).
These file types should be properly handled by other unzip flavors too,
regardless of Debian's/non-Linux Unixes' idiosyncrasies.
This commit is contained in:
Artur Juraszek 2020-04-06 22:06:25 +02:00 committed by Fabian Homborg
parent 8025e80fdb
commit 33bc2bc312

View file

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