diff options
| author | Shokara Kou <kou@shokara.fr.to> | 2022-01-24 16:18:49 -0500 |
|---|---|---|
| committer | Shokara Kou <kou@shokara.fr.to> | 2022-01-24 16:18:49 -0500 |
| commit | 07c0204d9a9e1cabca3b5a7140e976e5c0ee810f (patch) | |
| tree | 91f1e077914dd56757eeba4cdc986fcdc381d36d /contrib | |
| parent | e8772c497f4f298c27caeee7443b6620a8870b20 (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.ksh | 4 |
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 | ||
| 2 | set -A complete_angou_1 -- help copy edit view | ||
| 3 | set -A complete_angou_2 -- $(find ${ANGOU_DIR:-~/.angou} -type f | sort \ | ||
| 4 | | sed s,${ANGOU_DIR}/,, | sed s,\\.gpg$,,) | ||
