mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-05 19:08:04 -05:00
Some more zsh completion tidy up
Changes for consistency across functions Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c3e72e11b6
commit
9cab9807e0
@ -214,6 +214,7 @@ _pacman_completions_all_groups() {
|
||||
local -a cmd groups
|
||||
_pacman_get_command
|
||||
groups=( $(_call_program groups $cmd[@] -Sg) )
|
||||
typeset -U groups
|
||||
compadd "$@" -a groups
|
||||
}
|
||||
|
||||
@ -242,7 +243,7 @@ _pacman_completions_all_packages() {
|
||||
_pacman_completions_installed_groups() {
|
||||
local -a cmd groups
|
||||
_pacman_get_command
|
||||
groups=(${(o)${(f)"$(pacman -Qg)"}% *})
|
||||
groups=(${(o)${(f)"$(_call_program groups $cmd[@] -Qg)"}% *})
|
||||
typeset -U groups
|
||||
compadd "$@" -a groups
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user