summaryrefslogtreecommitdiff
path: root/completions/qdbus
blob: 9a22e80007a38fb8b9c1ad162f027dc2d34f5210 (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 | \
        command sed "s/(.*)//")' -- "$cur") )
} &&
complete -F _qdbus qdbus dcop

# ex: filetype=sh