## vim:ft=zsh # zsh functions autoload -U compinit autoload colors autoload catch throw autoload zargs # own functions for funcfile in $ZDIR/functions/*(*N); autoload ${funcfile:t} unset funcfile colors xsource # from https://git.tabularazor.org/~mikael/etc/tree/zsh/functions for action in Start Stop Restart Reload; { eval "function $action { typeset action for action in \$*; { sudo /etc/init.d/\$action ${action:l} } }" } unset action