mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Let pacman-derived tools complete zst as well
Arch is switching to zst as the default compression method
This commit is contained in:
parent
b0e3cc4b5c
commit
d0edd984d5
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user