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