~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to debian/bash_completion

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# bash completion for Debian apache2 configuration tools
 
2
# $Id: apache2,v 1.1 2005/03/16 22:51:19 guillaume Exp $
 
3
 
 
4
_apache2_modsites()
 
5
{
 
6
       COMPREPLY=( $( compgen -W '$( command ls /etc/apache2/$1 2>/dev/null \
 
7
               | sed -e 's/\.load//' -e 's/\.conf//' )' -- $cur  ) )
 
8
}
 
9
 
 
10
_a2enmod()
 
11
{
 
12
       local cur
 
13
 
 
14
       COMPREPLY=()
 
15
       cur=${COMP_WORDS[COMP_CWORD]}
 
16
 
 
17
       _apache2_modsites mods-available
 
18
}
 
19
complete -F _a2enmod a2enmod
 
20
 
 
21
_a2ensite()
 
22
{
 
23
       local cur
 
24
 
 
25
       COMPREPLY=()
 
26
       cur=${COMP_WORDS[COMP_CWORD]}
 
27
 
 
28
       _apache2_modsites sites-available
 
29
 
 
30
}
 
31
complete -F _a2ensite a2ensite
 
32
 
 
33
_a2dismod()
 
34
{
 
35
       local cur
 
36
 
 
37
       COMPREPLY=()
 
38
       cur=${COMP_WORDS[COMP_CWORD]}
 
39
 
 
40
       _apache2_modsites mods-enabled
 
41
}
 
42
complete -F _a2dismod a2dismod
 
43
 
 
44
_a2dissite()
 
45
{
 
46
       local cur
 
47
 
 
48
       COMPREPLY=()
 
49
       cur=${COMP_WORDS[COMP_CWORD]}
 
50
 
 
51
       _apache2_modsites sites-enabled
 
52
 
 
53
}
 
54
complete -F _a2dissite a2dissite