summary refs log tree commit diff
path: root/Completion/Debian/Command/_a2utils
blob: 46126282f20356454d6bbde460c17870b1286e4f (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 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 0