25 lines
495 B
Plaintext
Raw Normal View History

# Qt qdbus, dcop completion
have qdbus || have dcop || return
2008-11-25 12:10:55 +01:00
_qdbus()
{
2009-11-01 20:45:59 +02:00
local cur
2009-10-04 19:42:50 +02:00
COMPREPLY=()
_get_comp_words_by_ref cur
[ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} 2>/dev/null | \
sed s/\(.*\)// )' -- "$cur" ) )
2008-11-25 12:10:55 +01:00
} &&
complete -F _qdbus qdbus dcop
# Local variables:
# mode: shell-script
2009-10-04 19:42:50 +02:00
# sh-basic-offset: 4
# sh-indent-comment: t
2009-10-04 19:42:50 +02:00
# indent-tabs-mode: nil
# End:
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh