summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--contrib/autocomplete.ksh4
2 files changed, 9 insertions, 0 deletions
diff --git a/README b/README
index 08ddebd..8d20e2c 100644
--- a/README
+++ b/README
@@ -19,3 +19,8 @@ Don't. For a serious answer, it's because this doesn't depend on bash.
19Migrating from password-store 19Migrating from password-store
20----------------------------- 20-----------------------------
21Set the ANGOU_DIR environment variable to your password store directory. 21Set the ANGOU_DIR environment variable to your password store directory.
22
23Auto-complete
24-------------
25If you use ksh, all you'd have to do is source contrib/autocomplete.ksh in your
26kshrc.
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$,,)