Ville Skyttä ab74bd4da9 Redirect dcop/qdbus stderr to /dev/null.
Even if we have e.g. dcop installed we may not have dcopserver running
and providing completions.
2009-11-30 23:16:08 +02:00

23 lines
476 B
Bash

# Qt qdbus, dcop completion
have qdbus || have dcop &&
_qdbus()
{
local cur
COMPREPLY=()
cur=`_get_cword`
[ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} 2>/dev/null | \
sed s/\(.*\)// )' -- "$cur" ) )
} &&
complete -F _qdbus qdbus dcop
# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh