[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 83252965e2674c45ed675f0aa04b0d12d218e29c

David Paleino dapal at debian.org
Fri Jun 11 13:52:44 UTC 2010


The following commit has been merged in the master branch:
commit 83252965e2674c45ed675f0aa04b0d12d218e29c
Author: David Paleino <dapal at debian.org>
Date:   Fri Jun 11 15:51:17 2010 +0200

    Special-case "apt-get source" (Debian: #572000)

diff --git a/contrib/apt b/contrib/apt
index 533d0c5..4010a0d 100644
--- a/contrib/apt
+++ b/contrib/apt
@@ -26,6 +26,12 @@ _apt_get()
                 fi
                 return 0
                 ;;
+            source)
+                COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
+                    2> /dev/null ) $( apt-cache dumpavail | \
+                    command grep "^Source: $cur" | sort -u | cut -f2 -d" " ) )
+                return 0
+                ;;
             *)
                 COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
                     2> /dev/null ) )

-- 
bash-completion



More information about the Bash-completion-commits mailing list