From owner-dev-commits-src-all@freebsd.org Sat Jan 16 21:06:13 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AF5524EAD9E; Sat, 16 Jan 2021 21:06:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DJ9ZY4b5dz4p95; Sat, 16 Jan 2021 21:06:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9051615A0F; Sat, 16 Jan 2021 21:06:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 10GL6DAH010466; Sat, 16 Jan 2021 21:06:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 10GL6DFW010465; Sat, 16 Jan 2021 21:06:13 GMT (envelope-from git) Date: Sat, 16 Jan 2021 21:06:13 GMT Message-Id: <202101162106.10GL6DFW010465@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Daniel Ebdrup Jensen Subject: git: c6a112cf84d2 - main - service.8: Provide example for adding completions to (t)csh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: debdrup X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c6a112cf84d2bf55101c0fb61c4fd1e3cf5d3cc8 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2021 21:06:13 -0000 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 AuthorDate: 2021-01-16 20:55:20 +0000 Commit: Daniel Ebdrup Jensen 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