[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-490-g15211e7

David Paleino dapal at debian.org
Tue Nov 1 19:33:06 UTC 2011


The following commit has been merged in the master branch:
commit 15211e74fe915e07fb97363b7d5adfd7ca81d1c9
Author: David Paleino <dapal at debian.org>
Date:   Tue Nov 1 20:32:45 2011 +0100

    Add 'versions' command to aptitude (Debian: #604393)

diff --git a/completions/aptitude b/completions/aptitude
index 06c3fae..cf18c66 100644
--- a/completions/aptitude
+++ b/completions/aptitude
@@ -28,7 +28,7 @@ _aptitude()
 
     local special i
     for (( i=0; i < ${#words[@]}-1; i++ )); do
-        if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag) ]]; then
+        if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag|versions) ]]; then
             special=${words[i]}
         fi
         #exclude some mutually exclusive options
@@ -40,7 +40,7 @@ _aptitude()
        case $special in
            install|hold|markauto|unmarkauto|dist-upgrade|full-upgrade| \
            download|show|changelog|why|why-not|build-dep|add-user-tag| \
-           remove-user-tag)
+           remove-user-tag|versions)
                COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
                return 0
                ;;
@@ -81,7 +81,7 @@ _aptitude()
             hold unhold purge markauto unmarkauto why why-not \
             dist-upgrade full-upgrade download search show \
             forbid-version changelog keep-all build-dep \
-            add-user-tag remove-user-tag' -- "$cur" ) )
+            add-user-tag remove-user-tag versions' -- "$cur" ) )
     fi
 
     return 0

-- 
bash-completion



More information about the Bash-completion-commits mailing list