diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.8 | 7 |
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. |