summaryrefslogtreecommitdiff
path: root/etc/function
blob: 61fc8fa6c959e9837d2cb6bfff8bd414fe0403a8 (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 Status Start Stop Restart Reload {
	typeset script sudo
	if ((EUID)) {
		sudo=sudo
	}
	for script in $*; {
		$sudo /etc/init.d/$script ${0:l}
	}
}