add a completion for zstd support

An update has been released by Arch Linux official to support the packages for zstd compression.

> https://www.archlinux.org/news/required-update-to-recent-libarchive/
This commit is contained in:
艾雨寒 ArielAxionL 2019-10-16 21:39:37 +08:00 committed by Fabian Homborg
parent b7f35f949e
commit 9ea8aa072f

View File

@ -132,6 +132,6 @@ complete -c $progname -n "$files" -l machinereadable -d 'Show in machine readabl
# Upgrade options
# Theoretically, pacman reads packages in all formats that libarchive supports
# In practice, it's going to be tar.xz or tar.gz
# In practice, it's going to be tar.xz, tar.gz or tar.zst
# Using "pkg.tar.*" here would change __fish_complete_suffix's descriptions to "unknown"
complete -c $progname -n "$upgrade" -xa '(__fish_complete_suffix .pkg.tar\{,.xz,.gz\})' -d 'Package file'
complete -c $progname -n "$upgrade" -xa '(__fish_complete_suffix .pkg.tar\{,.xz,.gz,.zst\})' -d 'Package file'