mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 00:57:21 +01:00
Fix -U complete
__fish_complete_suffix function is changed.
This commit is contained in:
parent
558c17f67c
commit
d5718b7406
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user