zsh-workers
 help / color / mirror / code / Atom feed
46126282f20356454d6bbde460c17870b1286e4f blob 487 bytes (raw)

 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
debug log:

solving 46126282f ...
found 46126282f in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).