blob: 5b5a5e37740d0c41e352f444616439fcefff3d4c (
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
|