summaryrefslogtreecommitdiffstats
path: root/shell-completion/mesg
diff options
context:
space:
mode:
authorSami Kerola2013-03-25 22:37:36 +0100
committerSami Kerola2013-04-01 18:41:55 +0200
commit8884f6d5f41aec30ae45c35590eedfd0d6a41858 (patch)
tree44d068dfa9089494da47133831bb56b2acca46d5 /shell-completion/mesg
parentbash-completion: sys-utils (diff)
downloadkernel-qcow2-util-linux-8884f6d5f41aec30ae45c35590eedfd0d6a41858.tar.gz
kernel-qcow2-util-linux-8884f6d5f41aec30ae45c35590eedfd0d6a41858.tar.xz
kernel-qcow2-util-linux-8884f6d5f41aec30ae45c35590eedfd0d6a41858.zip
bash-completion: term-utils
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
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