_xbps: update zsh completion for 0.38

This commit is contained in:
Christian Neukirchen 2014-09-14 23:09:22 +02:00 committed by Juan RP
parent dee7852af8
commit 73935efeb7

View File

@ -11,7 +11,7 @@ _xbps_common=(
) )
_xbps_all_packages() { _xbps_all_packages() {
compadd "$@" -- $(xbps-query -s '' | sed 's/^... \([^ ]*\)-.* .*/\1/') compadd "$@" -- $(xbps-query -Rs '' | sed 's/^... \([^ ]*\)-.* .*/\1/')
} }
_xbps_installed_packages() { _xbps_installed_packages() {
@ -93,6 +93,7 @@ _xbps_query() {
{-c,--cachedir=-}'[Full path to cachedir]:cache dir:_files -/' \ {-c,--cachedir=-}'[Full path to cachedir]:cache dir:_files -/' \
{-p,--property=-}'[Show properties]: ' \ {-p,--property=-}'[Show properties]: ' \
--regex'[Use Extended Regular Expressions to match]' \ --regex'[Use Extended Regular Expressions to match]' \
--fulldeptree'[Full dependency tree for -x/--deps]' \
{-R,--repository}'[Enable repository mode]' \ {-R,--repository}'[Enable repository mode]' \
--repository=-'[Add repository to the top of the list]:repository url:_files -/' \ --repository=-'[Add repository to the top of the list]:repository url:_files -/' \
- '(actions)' \ - '(actions)' \