summaryrefslogtreecommitdiffstats
path: root/shell-completion/mesg
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/mesg')
-rw-r--r--shell-completion/mesg16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell-completion/mesg b/shell-completion/mesg
new file mode 100644
index 000000000..62c98ca29
--- /dev/null
+++ b/shell-completion/mesg
@@ -0,0 +1,16 @@
+_mesg_module()
+{
+ local cur OPTS
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ case $cur in
+ -*)
+ OPTS="-v --verbose -V --version -h --help"
+ COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+ return 0
+ ;;
+ esac
+ COMPREPLY=( $(compgen -W "y n" -- $cur) )
+ return 0
+}
+complete -F _mesg_module mesg