From 8884f6d5f41aec30ae45c35590eedfd0d6a41858 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 25 Mar 2013 21:37:36 +0000 Subject: bash-completion: term-utils Signed-off-by: Sami Kerola --- shell-completion/mesg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 shell-completion/mesg (limited to 'shell-completion/mesg') 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 -- cgit v1.2.3-55-g7522