12345678910111213141516171819202122 |
- #compdef a2ensite a2dissite a2enmod a2dismod
- case "$service" in
- a2ensite)
- sites=( /etc/apache2/sites-available/*(:t) )
- _wanted sites expl sites compadd $sites
- ;;
- a2dissite)
- sites=( /etc/apache2/sites-enabled/*(:t) )
- _wanted sites expl sites compadd $sites
- ;;
- a2enmod)
- mods=( /etc/apache2/mods-available/*.load(:r:t) )
- _wanted mods expl mods compadd $mods
- ;;
- a2dismod)
- mods=( /etc/apache2/mods-enabled/*.load(:r:t) )
- _wanted mods expl mods compadd $mods
- ;;
- esac
- return 0
|