mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
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:
parent
8025e80fdb
commit
33bc2bc312
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue