Fix xz file completion

The previous completion gave every files.
Here, we only show files with the .xz, .txz, .lzma or .tlz extension.
This commit is contained in:
Clément Martinez 2016-09-14 08:27:10 +02:00 committed by Fabian Homborg
parent 0a6dc2addb
commit ed7bf83b56

View File

@ -1,5 +1,5 @@
complete -c xz -s z -l compress --description 'Compress'
complete -c xz -s d -l decompress -l uncompress --description 'Decompress' -a "
complete -c xz -s d -l decompress -l uncompress --description 'Decompress' -x -a "
(
__fish_complete_suffix .xz
__fish_complete_suffix .txz