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

# zsh functions
autoload -U compinit
autoload zargs

# own functions
autoload $ZDIR/functions/*(:t)

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