about summary refs log tree commit
path: root/contrib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-18 05:05:09 +0000
committerEric Wong <e@80x24.org>2020-12-19 09:32:08 +0000
commit2fe6af26d737773e0a7cafa5902360ab1309c807 (patch)
tree0bb1de157dca675d8f9857c32a0077e0bea7292d /contrib
parentf2c7b911a1c4a7520091ba7224773c30e409c337 (diff)
downloadpublic-inbox-2fe6af26d737773e0a7cafa5902360ab1309c807.tar.gz
Much work still needs to be done, but that goes for this
entire project :P
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/lei-completion.bash11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/completion/lei-completion.bash b/contrib/completion/lei-completion.bash
new file mode 100644
index 00000000..67cdd3ed
--- /dev/null
+++ b/contrib/completion/lei-completion.bash
@@ -0,0 +1,11 @@
+# Copyright (C) 2020 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
+
+# preliminary bash completion support for lei (Local Email Interface)
+# Needs a lot of work, see `lei__complete' in lib/PublicInbox::LEI.pm
+_lei() {
+        COMPREPLY=($(compgen -W "$(lei _complete ${COMP_WORDS[@]})" \
+                        -- "${COMP_WORDS[COMP_CWORD]}"))
+        return 0
+}
+complete -o filenames -o bashdefault -F _lei lei