Combine dcop and qdbus completions into the latter, they're the same.

This commit is contained in:
Ville Skyttä 2009-11-01 20:52:04 +02:00
parent a6b227992e
commit 3725168d8a
4 changed files with 4 additions and 30 deletions

View File

@ -35,6 +35,7 @@ bash-completion (2.x)
for bash version checks.
* Fix sed error in qdbus completions containing slashes (Debian: 552631).
* Add /sbin to $PATH when invoking ifconfig and iwconfig.
* Combine dcop and qdbus completions into the latter.
[ Freddy Vulto ]
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)

View File

@ -30,7 +30,6 @@ bashcomp_DATA = contrib/abook \
contrib/cpio \
contrib/cups \
contrib/cvs \
contrib/dcop \
contrib/dd \
contrib/dhclient \
contrib/dict \

View File

@ -1,26 +0,0 @@
# bash completion for dcop
have dcop &&
_dcop()
{
local cur compstr
COMPREPLY=()
cur=`_get_cword`
if [ -z $cur ]; then
compstr=${COMP_WORDS[*]}
else
compstr=$( command echo ${COMP_WORDS[*]} | sed "s/ $cur$//" )
fi
COMPREPLY=( $( compgen -W '$( command $compstr | sed s/\(.*\)// )' \
-- "$cur" ) )
} &&
complete -F _dcop 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

View File

@ -1,6 +1,6 @@
# Qt qdbus completion
# Qt qdbus, dcop completion
have qdbus &&
have qdbus || have dcop &&
_qdbus()
{
local cur
@ -11,7 +11,7 @@ _qdbus()
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \
-- "$cur" ) )
} &&
complete -F _qdbus qdbus
complete -F _qdbus qdbus dcop
# Local variables:
# mode: shell-script