From 0d606cb5fc3d7d8b64f1d946529f470bf59f7747 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sun, 19 Jul 2020 07:37:29 -0600 Subject: [PATCH] add doc lines for easier doc generation --- completions/git.ksh | 1 + completions/gopass.ksh | 2 +- completions/man.ksh | 1 + completions/rc.ksh | 1 + completions/ssh.ksh | 1 + completions/vmd.ksh | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/completions/git.ksh b/completions/git.ksh index ec40c58..f5a4371 100755 --- a/completions/git.ksh +++ b/completions/git.ksh @@ -1,3 +1,4 @@ +#: | git | add, fetch... | set -A complete_git_1 -- \ add am archive \ bisect branch bundle \ diff --git a/completions/gopass.ksh b/completions/gopass.ksh index e4013a1..f58a814 100755 --- a/completions/gopass.ksh +++ b/completions/gopass.ksh @@ -1,3 +1,3 @@ - +#: | gopass | audit, config... | PASS_LIST=$(gopass ls -f) set -A complete_gopass -- $PASS_LIST agent audit binary bin clone completion config copy cp create new delete remove rm edit set find search fsck generate git-credential jsonapi otp totp hotp git grep history hist init insert list ls move mv mounts recipients setup show sync templates unclip update version xc help h diff --git a/completions/man.ksh b/completions/man.ksh index 544fd84..62c2d54 100755 --- a/completions/man.ksh +++ b/completions/man.ksh @@ -1,3 +1,4 @@ +#: | man | man pages | MAN_CACHE=$LOAD_PATH/cache/man if [ ! -f $MAN_CACHE ]; then MANPATH=/usr/share/man man -k Nm~. | cut -d\( -f1 | tr -d , | \ diff --git a/completions/rc.ksh b/completions/rc.ksh index 3b46937..d0f16da 100755 --- a/completions/rc.ksh +++ b/completions/rc.ksh @@ -1,2 +1,3 @@ +#: | rc | OpenBSD rc scripts and rc commands | set -A complete_rcctl_1 -- disable enable get ls order set restart start stop set -A complete_rcctl_2 -- $(rcctl ls all) diff --git a/completions/ssh.ksh b/completions/ssh.ksh index b186636..4e7b104 100755 --- a/completions/ssh.ksh +++ b/completions/ssh.ksh @@ -1,3 +1,4 @@ +#: | ssh | ssh known hosts | set -A SSH_KNOWN_HOSTS ~/.ssh/known_hosts if [ -f /etc/ssh/ssh_known_hosts ]; then diff --git a/completions/vmd.ksh b/completions/vmd.ksh index dde998f..7ecb950 100755 --- a/completions/vmd.ksh +++ b/completions/vmd.ksh @@ -1,3 +1,4 @@ +#: | vmd | vmctl commands and VM names | pgrep -fq '/usr/sbin/vmd' if [ $? = 0 ]; then set -A complete_vmctl -- console load reload start stop reset status send receive