Code for automatic name completion in a tcsh(1) environment.
PR: docs/44435 Submitted by: Slaven Rezic slaven dot rezic at berlin dot de
This commit is contained in:
parent
ab48001478
commit
5339fa2a93
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user