about summary refs log tree commit diff
path: root/Completion/Debian/Command/_a2utils
blob: 8ee30ecf1429ba6776add1c735bc16a1c8f79831 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#compdef a2ensite a2dissite a2enmod a2dismod

local -a expl mods

case "$service" in
    a2ensite)
	_wanted sites expl sites \
	  _files -W /etc/apache2/sites-available
	;;
    a2dissite)
	_wanted sites expl sites \
	  _files -W /etc/apache2/sites-enabled
	;;
    a2enmod)
	mods=( /etc/apache2/mods-available/*.load(N:r:t) )
	_wanted mods expl mods compadd -a mods
	;;
    a2dismod)
	mods=( /etc/apache2/mods-enabled/*.load(N:r:t) )
	_wanted mods expl mods compadd -a mods
	;;
esac

return