Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/service/service.8
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
.Xr csh 1 | .Xr csh 1 | ||||
for the names and common commands of the rc.d scripts: | for the names and common commands of the rc.d scripts: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' \e | complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' \e | ||||
'n/*/(start stop reload restart \e | 'n/*/(start stop reload restart \e | ||||
status rcvar onestart onestop)/' | status rcvar onestart onestop)/' | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
The following programmable completion entry can be use in | The following programmable completion entry can be used in | ||||
.Xr bash 1 | .Xr bash 1 | ||||
for the names of the rc.d scripts: | for the names of the rc.d scripts: | ||||
.Bd -literal -offset -ident | .Bd -literal -offset -ident | ||||
_service () { | _service () { | ||||
local cur | local cur | ||||
cur=${COMP_WORDS[COMP_CWORD]} | cur=${COMP_WORDS[COMP_CWORD]} | ||||
COMPREPLY=( $( compgen -W '$( service -l )' -- $cur ) ) | COMPREPLY=( $( compgen -W '$( service -l )' -- $cur ) ) | ||||
return 0 | return 0 | ||||
Show All 17 Lines |