- make apt-cache complete the showsrc argument

This commit is contained in:
ianmacd 2003-04-12 03:05:37 +00:00
parent f1c791a48c
commit 9dda638a26

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.540 2003/04/08 07:48:47 ianmacd Exp $
# $Id: bash_completion,v 1.541 2003/04/12 05:05:37 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1591,7 +1591,7 @@ _apt_cache()
if [ "$cur" != show ]; then
for (( i=0; i < ${#COMP_WORDS}-1; i++ )); do
if [[ ${COMP_WORDS[i]} == @(add|depends|dotty|policy|show?(pkg)) ]]; then
if [[ ${COMP_WORDS[i]} == @(add|depends|dotty|policy|show?(pkg|src)) ]]; then
special=${COMP_WORDS[i]}
fi
done
@ -1636,7 +1636,7 @@ _apt_cache()
COMPREPLY=( $( compgen -W 'add gencaches showpkg show stats \
dumpavail unmet check search dump dotty policy \
depends pkgnames' -- $cur ) )
depends pkgnames showsrc' -- $cur ) )
fi