Added qdbus completion (LP: #257903)

This commit is contained in:
David Paleino 2008-11-25 12:10:55 +01:00
parent 64d2fd7df9
commit d203d34fc1
2 changed files with 19 additions and 1 deletions

17
contrib/qdbus Normal file
View File

@ -0,0 +1,17 @@
# Qt qdbus completion
#
have qdbus &&
_qdbus()
{
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 _qdbus qdbus

3
debian/changelog vendored
View File

@ -44,13 +44,14 @@ bash-completion (200809xx) UNRELEASED; urgency=low
* README updated: explain how to use bash-completion correctly. * README updated: explain how to use bash-completion correctly.
(Closes: #482383) (Closes: #482383)
* TODO updated: the Alioth team is now upstream. * TODO updated: the Alioth team is now upstream.
* Added qdbus completion (LP: #257903)
* debian/links fixed (Closes: #494292) * debian/links fixed (Closes: #494292)
* debian/control: * debian/control:
- fixed typo in the long description - fixed typo in the long description
* debian/install: * debian/install:
- correctly install contrib/* under /etc/bash_completion.d/ - correctly install contrib/* under /etc/bash_completion.d/
-- David Paleino <d.paleino@gmail.com> Sat, 22 Nov 2008 18:25:15 +0100 -- David Paleino <d.paleino@gmail.com> Tue, 25 Nov 2008 12:10:23 +0100
bash-completion (20080705) unstable; urgency=low bash-completion (20080705) unstable; urgency=low