diff options
| author | Aljaž "g5pw" Srebrnič <a2piratesoft@gmail.com> | 2013-03-31 23:29:55 +0200 |
|---|---|---|
| committer | Aljaž "g5pw" Srebrnič <a2piratesoft@gmail.com> | 2013-04-01 00:30:04 +0200 |
| commit | 54ed122d25dab95cacc2defb2d5601121bf1075a (patch) | |
| tree | 6eae7adfc030c53b77329076302c011ee94751a6 /src/_port | |
| parent | Remove unnecessary parenthesis escaping (diff) | |
| download | zsh-completions-54ed122d25dab95cacc2defb2d5601121bf1075a.tar zsh-completions-54ed122d25dab95cacc2defb2d5601121bf1075a.tar.gz zsh-completions-54ed122d25dab95cacc2defb2d5601121bf1075a.tar.bz2 zsh-completions-54ed122d25dab95cacc2defb2d5601121bf1075a.tar.lz zsh-completions-54ed122d25dab95cacc2defb2d5601121bf1075a.tar.xz zsh-completions-54ed122d25dab95cacc2defb2d5601121bf1075a.tar.zst zsh-completions-54ed122d25dab95cacc2defb2d5601121bf1075a.zip | |
Set cache-policy before calling _arguments
Diffstat (limited to 'src/_port')
| -rw-r--r-- | src/_port | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -48,6 +48,12 @@ _port() { '--show:Show which version is currently selected for the group (default if none given)' ) + local cache_policy + zstyle -s ":completion:${curcontext}:" cache-policy cache_policy + if [[ -z "$cache_policy" ]]; then + zstyle ":completion:${curcontext}:" cache-policy _port_caching_policy + fi + _arguments -s -C \ '-v[verbose mode (generate verbose messages)]' \ '-d[debug mode (generate debugging messages, implies -v)]' \ @@ -70,12 +76,6 @@ _port() { '*:extra:->extra' \ && return 0 - local cache_policy - zstyle -s ":completion:${curcontext}:" cache-policy cache_policy - if [[ -z "$cache_policy" ]]; then - zstyle ":completion:${curcontext}:" cache-policy _port_caching_policy - fi - case "$state" in extra) case "$words[2]" in |
