Package: apache2 Version: 2.0.53-5 Severity: wishlist Tags: patch The following scriptlet provides bash completion for Debian specific administration tools (a2enmod, a2ensite, a2dismod, a2dissite). Just install it in /etc/bash_completion.d/ to enable it automatically.
-- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.4.27-zarb1 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages apache2 depends on: ii apache2-mpm-worker 2.0.53-5 high speed threaded model for Apac -- no debconf information
# bash completion for Debian apache2 configuration tools # $Id: apache2,v 1.1 2005/03/16 22:51:19 guillaume Exp $ _apache2_modsites() { COMPREPLY=( $( compgen -W '$( command ls /etc/apache2/$1 2>/dev/null \ | sed -e 's/\.load//' -e 's/\.conf//' )' -- $cur ) ) } _a2enmod() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} _apache2_modsites mods-available } complete -F _a2enmod a2enmod _a2ensite() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} _apache2_modsites sites-available } complete -F _a2ensite a2ensite _a2dismod() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} _apache2_modsites mods-enabled } complete -F _a2dismod a2dismod _a2dissite() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} _apache2_modsites sites-enabled } complete -F _a2dissite a2dissite