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

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

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

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