diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2019-01-25 22:46:55 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2019-01-25 22:46:55 +0100 |
commit | 7b75d97c1e43461a844be04ae4d36c3437213fa7 (patch) | |
tree | 5301a4a542b5731bc3f46babe340a5edd44587bc /Completion/Linux | |
parent | 95401e8336912dab76912adc7b45e6337fc436a3 (diff) | |
parent | 9799d0f9a2bd3a13fe52dbb9bc4d86f874dc1e14 (diff) | |
download | zsh-7b75d97c1e43461a844be04ae4d36c3437213fa7.tar.gz zsh-7b75d97c1e43461a844be04ae4d36c3437213fa7.zip |
New upstream release 5.7
Merge branch 'upstream' at 'zsh-5.7' into branch debian
Diffstat (limited to 'Completion/Linux')
-rw-r--r-- | Completion/Linux/Command/_opkg | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Completion/Linux/Command/_opkg b/Completion/Linux/Command/_opkg index d64567681..ddaefe1eb 100644 --- a/Completion/Linux/Command/_opkg +++ b/Completion/Linux/Command/_opkg @@ -35,6 +35,10 @@ # % zstyle ':completion:*:opkg:*' conf-paths <pattern> ... # Set to one or more paths or glob patterns to override the defaults used when # searching opkg configuration data. +# +# Elevated privileges may be necessary to complete package names, etc.; consider +# setting the gain-privileges style as follows: +# zstyle ':completion:*:(ipkg|opkg)/*' gain-privileges yes ## # Check cache validity. @@ -105,7 +109,7 @@ _opkg_arch_prio() { } # Already configured arches - tmp=( ${(f)"$( _call_program architectures $svc print-architecture )"} ) + tmp=( ${(f)"$( _call_program -p architectures $svc print-architecture )"} ) tmp=( ${${tmp##arch[ ]##}%% *} ) tmp+=( @@ -182,7 +186,9 @@ _opkg_pkg_all() { { (( ! $#_opkg_cache_pkg_all )) || _cache_invalid opkg-pkg-all } && ! _retrieve_cache opkg-pkg-all && { - _opkg_cache_pkg_all=( ${(f)"$( _call_program pkg-all ${svc:-opkg} list )"} ) + _opkg_cache_pkg_all=( ${(f)"$( + _call_program -p pkg-all ${svc:-opkg} list )"} + ) _opkg_cache_pkg_all=( ${(@)_opkg_cache_pkg_all##[[:space:]]*} ) _opkg_cache_pkg_all=( ${(@)_opkg_cache_pkg_all%%[[:space:]]*} ) _store_cache opkg-pkg-all _opkg_cache_pkg_all @@ -207,7 +213,7 @@ _opkg_pkg_inst() { { (( ! $#_opkg_cache_pkg_inst )) || _cache_invalid opkg-pkg-inst } && ! _retrieve_cache opkg-pkg-inst && { _opkg_cache_pkg_inst=( ${(f)"$( - _call_program pkg-inst ${svc:-opkg} list-installed + _call_program -p pkg-inst ${svc:-opkg} list-installed )"} ) _opkg_cache_pkg_inst=( ${(@)_opkg_cache_pkg_inst##[[:space:]]*} ) _opkg_cache_pkg_inst=( ${(@)_opkg_cache_pkg_inst%%[[:space:]]*} ) @@ -257,7 +263,7 @@ _opkg_pkg_upgr() { { (( ! $#_opkg_cache_pkg_upgr )) || _cache_invalid opkg-pkg-upgr } && ! _retrieve_cache opkg-pkg-upgr && { _opkg_cache_pkg_upgr=( ${(f)"$( - _call_program pkg-upgr ${svc:-opkg} list-upgradable + _call_program -p pkg-upgr ${svc:-opkg} list-upgradable )"} ) _opkg_cache_pkg_upgr=( ${(@)_opkg_cache_pkg_upgr##[[:space:]]*} ) _opkg_cache_pkg_upgr=( ${(@)_opkg_cache_pkg_upgr%%[[:space:]]*} ) |