From 9ea8aa072f5c3d5551e33cf7522853fea801cc06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E9=9B=A8=E5=AF=92=20ArielAxionL?= Date: Wed, 16 Oct 2019 21:39:37 +0800 Subject: [PATCH] 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/ --- share/completions/pacman.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish index fa0b08189..7a8b3ca0c 100644 --- a/share/completions/pacman.fish +++ b/share/completions/pacman.fish @@ -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'