diff options
| author | Oliver Kiddle <opk@zsh.org> | 2017-09-18 15:53:29 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2017-09-18 15:53:29 +0200 |
| commit | b138acf42e52dcdf470f5001aa7ffa1e70eb60f3 (patch) | |
| tree | 8b8b52c41e0c86c1b7e2b7497bf354aaec518f5d /Completion/BSD/Command | |
| parent | 41724: update ethtool completion for new options (diff) | |
| download | zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar.gz zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar.bz2 zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar.lz zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar.xz zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar.zst zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.zip | |
41725: assorted minor updates to completion functions
Diffstat (limited to 'Completion/BSD/Command')
| -rw-r--r-- | Completion/BSD/Command/_sysrc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/BSD/Command/_sysrc b/Completion/BSD/Command/_sysrc index 246d73bd3..f0c12a2be 100644 --- a/Completion/BSD/Command/_sysrc +++ b/Completion/BSD/Command/_sysrc @@ -44,9 +44,13 @@ _sysrc() { local k v opt if (( $+opt_args[lista--L] )); then _services && ret=0 - elif [[ -prefix *=* ]]; then - # do you really want to go down this hole? - _message -e values value + elif compset -P 1 '*='; then + case $IPREFIX in + *_enable=) _wanted values expl value compadd YES NO && ret=0 ;; + *_program=) _files -g "*(-*)" && ret=0 ;; + *_interface(|s)=) _net_interfaces && ret=0 ;; + *) _message -e values value ;; + esac else if zstyle -T ":completion:${curcontext%:*}:values" verbose; then opt=d |
