mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
17961: Armin Wolfermann: add OpenBSD support in _sysctl
This commit is contained in:
parent
f489f7b24e
commit
1882594465
2 changed files with 14 additions and 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>
|
2002-11-22 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
* 17958: Completion/Zsh/Command/_print, Completion/Zsh/Command/_read,
|
* 17958: Completion/Zsh/Command/_print, Completion/Zsh/Command/_read,
|
||||||
|
|
|
@ -33,4 +33,13 @@ case $OSTYPE in
|
||||||
'(-n -w -p -a *)-A[list all in table form]' \
|
'(-n -w -p -a *)-A[list all in table form]' \
|
||||||
'(-n -p -a -A)*:sysctl variable:_files -W /proc/sys'
|
'(-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
|
esac
|
||||||
|
|
Loading…
Reference in a new issue