diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-11-25 12:24:54 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-11-25 12:24:54 +0000 |
commit | 7c2e738536943aa80a66bd1b62675fb8ea83e345 (patch) | |
tree | ee0e671655ea3301d58dc12d073546b2cd8a9dc8 /Completion/Unix/Command/_sysctl | |
parent | b71ba061fb5ce1f04416248b64fb839d5b03da9c (diff) | |
download | zsh-7c2e738536943aa80a66bd1b62675fb8ea83e345.tar.gz zsh-7c2e738536943aa80a66bd1b62675fb8ea83e345.tar.xz zsh-7c2e738536943aa80a66bd1b62675fb8ea83e345.zip |
17961: Armin Wolfermann: add OpenBSD support in _sysctl
Diffstat (limited to 'Completion/Unix/Command/_sysctl')
-rw-r--r-- | Completion/Unix/Command/_sysctl | 9 |
1 files changed, 9 insertions, 0 deletions
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 |