Redirect dcop/qdbus stderr to /dev/null.
Even if we have e.g. dcop installed we may not have dcopserver running and providing completions.
This commit is contained in:
parent
a6f79a9a69
commit
ab74bd4da9
@ -8,8 +8,8 @@ _qdbus()
|
|||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
[ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
|
[ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
|
||||||
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \
|
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} 2>/dev/null | \
|
||||||
-- "$cur" ) )
|
sed s/\(.*\)// )' -- "$cur" ) )
|
||||||
} &&
|
} &&
|
||||||
complete -F _qdbus qdbus dcop
|
complete -F _qdbus qdbus dcop
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user