[Bash-completion-commits] ./current r1210: Added qdbus completion (LP: #257903)

David Paleino d.paleino at gmail.com
Tue Nov 25 11:10:55 UTC 2008


------------------------------------------------------------
revno: 1210
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Tue 2008-11-25 12:10:55 +0100
message:
  Added qdbus completion (LP: #257903)
added:
  contrib/qdbus
modified:
  debian/changelog
-------------- next part --------------
=== added file 'contrib/qdbus'
--- a/contrib/qdbus	1970-01-01 00:00:00 +0000
+++ b/contrib/qdbus	2008-11-25 11:10:55 +0000
@@ -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

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



More information about the Bash-completion-commits mailing list