summaryrefslogtreecommitdiff
path: root/completions/avctrl
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-10-12 23:01:10 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-10-12 23:01:10 +0300
commit156656c16d4302d059221a06eb7c1bd460e41fe9 (patch)
tree87b9edeaab27b4d7a5ae70644a5b7803c3cc7c25 /completions/avctrl
parentd3d6476f6c24cebb89e4712477e568dd5f5fbca8 (diff)
downloadbash-completion-156656c16d4302d059221a06eb7c1bd460e41fe9.tar.gz
Split/rename many completions into per-command files.
Diffstat (limited to 'completions/avctrl')
-rw-r--r--completions/avctrl26
1 files changed, 26 insertions, 0 deletions
diff --git a/completions/avctrl b/completions/avctrl
new file mode 100644
index 00000000..57f5d57b
--- /dev/null
+++ b/completions/avctrl
@@ -0,0 +1,26 @@
+# avctrl completion
+
+_avctrl()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '--help --quiet' -- "$cur" ) )
+ else
+ local args
+ _count_args
+ if [ $args -eq 1 ]; then
+ COMPREPLY=( $( compgen -W 'discover switch' -- "$cur" ) )
+ fi
+ fi
+} &&
+complete -F _avctrl avctrl
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh