|
@@ -146,8 +146,8 @@ 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" -d 'Package file' -xa "(__fish_complete_suffix .pkg.tar\{,.xz,.gz,.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'
|
|
|
+
|
|
|
|
|
|
# Yay operations
|
|
|
complete -c $progname -s Y -f -l yay -n "$noopt" -d 'Yay specific operations'
|