2011-11-09 23:28:11 +02:00

15 lines
381 B
Bash

# 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