add missing options and operations to zsh

Signed-off-by: Jguer <me@jguer.space>
This commit is contained in:
Jguer 2018-03-04 01:00:11 +00:00
parent fc3738c060
commit 9a6596f6c6

View File

@ -88,10 +88,21 @@ _pacman_opts_query_modifiers=(
{-u,--upgrades}'[List packages that can be upgraded]' {-u,--upgrades}'[List packages that can be upgraded]'
) )
# -Y
_pacman_opts_yay_modifiers=( _pacman_opts_yay_modifiers=(
{-c,--clean}'[Remove unneeded dependencies]' {-c,--clean}'[Remove unneeded dependencies]'
'--gendb[Generates development package DB used for updating]' '--gendb[Generates development package DB used for updating]'
) )
# -P
_pacman_opts_print_modifiers=(
{-c,--complete}'[Used for completions]'
{-d,--defaultconfig}'[Print default yay configuration]'
{-g,--config}'[Print current yay configuration]'
{-n,--numberupgrades}'[Print number of updates]'
{-s,--stats}'[Display system package statistics]'
{-u,--upgrades}'[Print update list]'
)
# options for passing to _arguments: options for --remove command # options for passing to _arguments: options for --remove command
_pacman_opts_remove=( _pacman_opts_remove=(
{-c,--cascade}'[Remove all dependent packages]' {-c,--cascade}'[Remove all dependent packages]'
@ -429,6 +440,10 @@ _pacman_zsh_comp() {
Q*) Q*)
_pacman_action_query _pacman_action_query
;; ;;
P*)
_arguments -s : \
"$_pacman_opts_print_modifiers[@]"
;;
R*) R*)
_pacman_action_remove _pacman_action_remove
;; ;;
@ -471,8 +486,8 @@ _pacman_zsh_comp() {
_pacman_action_version _pacman_action_version
;; ;;
Y*) Y*)
"$_pacman_opts_common[@]" \ _arguments -s : \
"$_pacman_opts_sync_modifiers[@]" "$_pacman_opts_yay_modifiers[@]"
;; ;;
*) *)