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