mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-04 06:14:50 +01:00
24 lines
487 B
Text
24 lines
487 B
Text
#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
|