summaryrefslogtreecommitdiff
path: root/completions/qdbus
blob: a098fbc9ea803bc6112156aa6ebff5348922e77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Qt qdbus, dcop completion                                -*- shell-script -*-

_qdbus()
{
    local cur prev words cword
    _init_completion || return

    [[ -n $cur ]] && unset words[${#words[@]}-1]
    COMPREPLY=( $( compgen -W '$( command ${words[@]} 2>/dev/null | \
        sed s/\(.*\)// )' -- "$cur" ) )
} &&
complete -F _qdbus qdbus dcop

# ex: ts=4 sw=4 et filetype=sh