zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _sysctl for OpenBSD
@ 2002-11-23 15:20 Armin Wolfermann
  0 siblings, 0 replies; only message in thread
From: Armin Wolfermann @ 2002-11-23 15:20 UTC (permalink / raw)
  To: zsh-workers

Index: _sysctl
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sysctl,v
retrieving revision 1.4
diff -u -r1.4 _sysctl
--- _sysctl	8 Oct 2001 16:22:40 -0000	1.4
+++ _sysctl	23 Nov 2002 15:17:58 -0000
@@ -33,4 +33,13 @@
       '(-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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-23 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-23 15:20 PATCH: _sysctl for OpenBSD Armin Wolfermann

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).