summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorShokara Kou <kou@shokara.fr.to>2022-01-24 16:18:49 -0500
committerShokara Kou <kou@shokara.fr.to>2022-01-24 16:18:49 -0500
commit07c0204d9a9e1cabca3b5a7140e976e5c0ee810f (patch)
tree91f1e077914dd56757eeba4cdc986fcdc381d36d /contrib
parente8772c497f4f298c27caeee7443b6620a8870b20 (diff)
add ksh autocomplete in contrib/
I just found out recently that ksh supported autocomplete when reading the man page for got(1), so here is support for it. I have not tested whether it works on other shells like bash or zsh because I do not use them.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/autocomplete.ksh4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/autocomplete.ksh b/contrib/autocomplete.ksh
new file mode 100644
index 0000000..dad6874
--- /dev/null
+++ b/contrib/autocomplete.ksh
@@ -0,0 +1,4 @@
1#!/bin/ksh
2set -A complete_angou_1 -- help copy edit view
3set -A complete_angou_2 -- $(find ${ANGOU_DIR:-~/.angou} -type f | sort \
4 | sed s,${ANGOU_DIR}/,, | sed s,\\.gpg$,,)