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

This commit is contained in:
David Paleino 2010-06-11 15:51:17 +02:00
parent 94372b2aa6
commit 83252965e2

View File

@ -26,6 +26,12 @@ _apt_get()
fi fi
return 0 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" \ COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
2> /dev/null ) ) 2> /dev/null ) )