summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorhmp <hmp@FreeBSD.org>2004-12-05 23:44:52 +0000
committerhmp <hmp@FreeBSD.org>2004-12-05 23:44:52 +0000
commit8f9a2ff959fd4e1cf63e13cfd9bb293314873371 (patch)
tree9d0011142835eac218b507e948fe3461b0f1aae9 /sbin
parent66304651ce447b76fbe82f181ecd74f422157714 (diff)
downloadFreeBSD-src-8f9a2ff959fd4e1cf63e13cfd9bb293314873371.zip
FreeBSD-src-8f9a2ff959fd4e1cf63e13cfd9bb293314873371.tar.gz
Code for automatic name completion in a tcsh(1) environment.
PR: docs/44435 Submitted by: Slaven Rezic slaven dot rezic at berlin dot de
Diffstat (limited to 'sbin')
-rw-r--r--sbin/sysctl/sysctl.87
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index 4462fe3..66e7bad 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -93,6 +93,13 @@ use the following code:
listsysctls () { set -A reply $(sysctl -AN ${1%.*}) }
compctl -K listsysctls sysctl
.Ed
+.Pp
+To enable completion of variable names in
+.Xr tcsh 1 ,
+use:
+.Bd -literal -offset indent
+complete sysctl 'n/*/`sysctl -Na`/'
+.Ed
.It Fl n
Show only variable values, not their names.
This option is useful for setting shell variables.
OpenPOWER on IntegriCloud