From d0edd984d52ceb223649f11e965701fbc53a94c3 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 28 Dec 2019 17:08:29 +0100 Subject: [PATCH] Let pacman-derived tools complete zst as well Arch is switching to zst as the default compression method --- share/completions/pacaur.fish | 5 ++--- share/completions/pacman.fish | 1 - share/completions/yaourt.fish | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/share/completions/pacaur.fish b/share/completions/pacaur.fish index 9e7166aff..b2700d029 100644 --- a/share/completions/pacaur.fish +++ b/share/completions/pacaur.fish @@ -161,6 +161,5 @@ 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 -# 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; __fish_complete_suffix pkg.tar.gz)' -d 'Package file' +# In practice, it's going to be tar.xz or tar.gz or tar.zst +complete -c $progname -n "$upgrade" -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz)' -d 'Package file' diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish index a0d2264e3..177ddbe50 100644 --- a/share/completions/pacman.fish +++ b/share/completions/pacman.fish @@ -141,5 +141,4 @@ complete -c $progname -n "$sync" -xa "$listall $listgroups" # Upgrade options # Theoretically, pacman reads packages in all formats that libarchive supports # 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.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz)' -d 'Package file' diff --git a/share/completions/yaourt.fish b/share/completions/yaourt.fish index a99ea01a0..6d930c54a 100644 --- a/share/completions/yaourt.fish +++ b/share/completions/yaourt.fish @@ -172,9 +172,8 @@ 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, tar.xz or tar.gz -# 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; __fish_complete_suffix pkg.tar.gz)' -d 'Package file' +# In practice, it's going to be tar.xz, tar.gz or tar.zst +complete -c $progname -n "$upgrade" -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz)' -d 'Package file' ## Yaourt only stuff # Clean options