mirror of
https://github.com/Jguer/yay
synced 2024-09-06 16:43:03 +00:00
Fixed ZSH completion
This commit is contained in:
parent
42889821d3
commit
19edd5a139
|
@ -308,11 +308,11 @@ _pacman_completions_all_packages() {
|
|||
fi
|
||||
|
||||
if compset -P1 '*/*'; then
|
||||
packages=( $(_call_program packages yay --complete ${words[CURRENT]%/*}) )
|
||||
packages=( $(_call_program packages yay -Pc ${words[CURRENT]%/*}) )
|
||||
typeset -U packages
|
||||
${seq} _wanted repo_packages expl "repository/package" compadd ${sep[@]} ${(@)packages}
|
||||
else
|
||||
packages=( $(_call_program packages yay --complete ) )
|
||||
packages=( $(_call_program packages yay -Pc ) )
|
||||
typeset -U packages
|
||||
${seq} _wanted packages expl "packages" compadd ${sep[@]} - "${(@)packages}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue