summaryrefslogtreecommitdiff
path: root/etc/function
blob: 3b6e122acd8f098408b0509e68d359684710a1d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## vim:ft=zsh

# zsh functions
autoload -U compinit
autoload catch throw
autoload zargs

# own functions
for funcfile in $ZDIR/functions/*(*N);
	autoload ${funcfile:t}
unset funcfile

function Start Stop Restart Reload {
	typeset script
	for script in $*; {
		sudo /etc/init.d/$script ${0:l}
	}
}