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

_comp_cmd_qdbus()
{
    local cur prev words cword comp_args
    _comp_initialize -- "$@" || return

    _comp_compgen_split -- "$(
        command "${words[@]::cword}" 2>/dev/null | command sed 's/(.*)//'
    )"
} &&
    complete -F _comp_cmd_qdbus qdbus dcop

# ex: filetype=sh