diff options
| author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-11-25 12:08:25 +0000 |
|---|---|---|
| committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-11-25 12:08:25 +0000 |
| commit | 188259446513aedc193d887cd974f1646371a0c1 (patch) | |
| tree | 332c4dce44ff2d432d37a13dbb52853055d86954 | |
| parent | 17958: -u and -v options were missing (diff) | |
| download | zsh-188259446513aedc193d887cd974f1646371a0c1.tar zsh-188259446513aedc193d887cd974f1646371a0c1.tar.gz zsh-188259446513aedc193d887cd974f1646371a0c1.tar.bz2 zsh-188259446513aedc193d887cd974f1646371a0c1.tar.lz zsh-188259446513aedc193d887cd974f1646371a0c1.tar.xz zsh-188259446513aedc193d887cd974f1646371a0c1.tar.zst zsh-188259446513aedc193d887cd974f1646371a0c1.zip | |
17961: Armin Wolfermann: add OpenBSD support in _sysctl
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Completion/Unix/Command/_sysctl | 9 |
2 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2002-11-25 Oliver Kiddle <opk@zsh.org> + + * 17961: Armin Wolfermann: Completion/Unix/Command/_sysctl: + add OpenBSD support in _sysctl + 2002-11-22 Oliver Kiddle <opk@zsh.org> * 17958: Completion/Zsh/Command/_print, Completion/Zsh/Command/_read, diff --git a/Completion/Unix/Command/_sysctl b/Completion/Unix/Command/_sysctl index 2198d1b8a..b42c0bb23 100644 --- a/Completion/Unix/Command/_sysctl +++ b/Completion/Unix/Command/_sysctl @@ -33,4 +33,13 @@ case $OSTYPE in '(-n -w -p -a *)-A[list all in table form]' \ '(-n -p -a -A)*:sysctl variable:_files -W /proc/sys' ;; + openbsd*) + : ${(A)_cache_sysctlvars:=${${(f)"$(sysctl -a)"}%% *}} + _arguments -s -A "-*" \ + '(-w -A *)-a[list all string and integer variables]' \ + '(-w -a *)-A[list all known variables]' \ + '(-w)-n[show only values]' \ + '(-a -A -n)-w[write variable]' \ + '(-a -A)*:sysctl variable:_multi_parts ${words[(r)-w]:+-S=} -i . _cache_sysctlvars' + ;; esac |
