git: c6a112cf84d2 - main - service.8: Provide example for adding completions to (t)csh
Daniel Ebdrup Jensen
debdrup at FreeBSD.org
Sat Jan 16 21:06:13 UTC 2021
The branch main has been updated by debdrup (doc committer):
URL: https://cgit.FreeBSD.org/src/commit/?id=c6a112cf84d2bf55101c0fb61c4fd1e3cf5d3cc8
commit c6a112cf84d2bf55101c0fb61c4fd1e3cf5d3cc8
Author: Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
AuthorDate: 2021-01-16 20:55:20 +0000
Commit: Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
CommitDate: 2021-01-16 21:05:29 +0000
service.8: Provide example for adding completions to (t)csh
service(8) has an example for bash completion, however bash is third
party and in /usr/share/examples/csh/dot.cshrc is a working example for
csh.
Since I use (t)csh, I've tested it, and it works for me.
PR: 179497
Submitted by: ohauer@
Reviewed by: kp (tentatively)
Differential Revision: https://reviews.freebsd.org/D28197
---
usr.sbin/service/service.8 | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/usr.sbin/service/service.8 b/usr.sbin/service/service.8
index 27d3948ed62e..a804ec390b6b 100644
--- a/usr.sbin/service/service.8
+++ b/usr.sbin/service/service.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 23, 2020
+.Dd January 16, 2021
.Dt SERVICE 8
.Os
.Sh NAME
@@ -130,6 +130,13 @@ service -rv
.Ed
.Pp
The following programmable completion entry can be used in
+.Xr csh 1
+for the names and common commands of the rc.d scripts:
+.Dl "complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' \e"
+.Dl " 'n/*/(start stop reload restart \e"
+.Dl " status rcvar onestart onestop)/'"
+.Pp
+The following programmable completion entry can be use in
.Xr bash 1
for the names of the rc.d scripts:
.Bd -literal -offset -ident
More information about the dev-commits-src-all
mailing list