summaryrefslogtreecommitdiffstats
path: root/completions/withlist
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/withlist18
1 files changed, 18 insertions, 0 deletions
diff --git a/completions/withlist b/completions/withlist
new file mode 100644
index 0000000..4142471
--- /dev/null
+++ b/completions/withlist
@@ -0,0 +1,18 @@
+# mailman withlist completion -*- shell-script -*-
+
+_withlist()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '--lock --interactive --run --all --quiet
+ --help' -- "$cur"))
+ else
+ _xfunc list_lists _mailman_lists
+ fi
+
+} &&
+ complete -F _withlist withlist
+
+# ex: filetype=sh