summaryrefslogtreecommitdiff
path: root/completions/msynctool
diff options
context:
space:
mode:
Diffstat (limited to 'completions/msynctool')
-rw-r--r--completions/msynctool17
1 files changed, 4 insertions, 13 deletions
diff --git a/completions/msynctool b/completions/msynctool
index 3f9afb7f..db48e1b7 100644
--- a/completions/msynctool
+++ b/completions/msynctool
@@ -1,14 +1,11 @@
-# bash completion for msynctool
+# bash completion for msynctool -*- shell-script -*-
-have msynctool &&
_msynctool()
{
- local cur prev anteprev
+ local cur prev words cword
+ _init_completion || return
- COMPREPLY=()
- _get_comp_words_by_ref cur prev anteprev
-
- case $anteprev in
+ case $words in
--configure)
COMPREPLY=( $( compgen -W "$(msynctool --showgroup \
$prev | awk '/^Member/ {print $2}' | sed \
@@ -42,10 +39,4 @@ _msynctool()
} &&
complete -F _msynctool msynctool
-# 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