Package: debconf
Version: 1.4.30.11
Severity: wishlist

Place the attached file to /etc/bash_completion.d/debconf, please. It will
allow bash to perform user-friendly bash completion for debconf-show.

Thank you.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (999, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages debconf depends on:
ii  debconf-i18n                  1.4.30.11  full internationalization support 
ii  perl-base                     5.8.4-8    The Pathologically Eclectic Rubbis

-- debconf information excluded
have debconf-show &&
_debconf-show()
{
        local cur

        COMPREPLY=()
        cur=${COMP_WORDS[COMP_CWORD]}
        COMPREPLY=($( compgen -W '--listowners --listdbs --dbname=' -- $cur ) \
                        $( apt-cache pkgnames -- $cur ) )
}
complete -F _debconf-show debconf-show

Reply via email to