Combine dcop and qdbus completions into the latter, they're the same.
This commit is contained in:
parent
a6b227992e
commit
3725168d8a
1
CHANGES
1
CHANGES
@ -35,6 +35,7 @@ bash-completion (2.x)
|
|||||||
for bash version checks.
|
for bash version checks.
|
||||||
* Fix sed error in qdbus completions containing slashes (Debian: 552631).
|
* Fix sed error in qdbus completions containing slashes (Debian: 552631).
|
||||||
* Add /sbin to $PATH when invoking ifconfig and iwconfig.
|
* Add /sbin to $PATH when invoking ifconfig and iwconfig.
|
||||||
|
* Combine dcop and qdbus completions into the latter.
|
||||||
|
|
||||||
[ Freddy Vulto ]
|
[ Freddy Vulto ]
|
||||||
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
|
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
|
||||||
|
@ -30,7 +30,6 @@ bashcomp_DATA = contrib/abook \
|
|||||||
contrib/cpio \
|
contrib/cpio \
|
||||||
contrib/cups \
|
contrib/cups \
|
||||||
contrib/cvs \
|
contrib/cvs \
|
||||||
contrib/dcop \
|
|
||||||
contrib/dd \
|
contrib/dd \
|
||||||
contrib/dhclient \
|
contrib/dhclient \
|
||||||
contrib/dict \
|
contrib/dict \
|
||||||
|
26
contrib/dcop
26
contrib/dcop
@ -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
|
|
@ -1,6 +1,6 @@
|
|||||||
# Qt qdbus completion
|
# Qt qdbus, dcop completion
|
||||||
|
|
||||||
have qdbus &&
|
have qdbus || have dcop &&
|
||||||
_qdbus()
|
_qdbus()
|
||||||
{
|
{
|
||||||
local cur
|
local cur
|
||||||
@ -11,7 +11,7 @@ _qdbus()
|
|||||||
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \
|
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
} &&
|
} &&
|
||||||
complete -F _qdbus qdbus
|
complete -F _qdbus qdbus dcop
|
||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# mode: shell-script
|
# mode: shell-script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user