From c0d16ec6acc2ad128f74f5ea2bda8efb8830ab45 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 23 Jul 2008 13:30:23 +0200 Subject: Added Restart/Stop etc. for init.d --- etc/function | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc/function') diff --git a/etc/function b/etc/function index 90d709d..45a15e7 100644 --- a/etc/function +++ b/etc/function @@ -1,3 +1,8 @@ for i in $ZDIR/functions/*; { autoload $i:t } + +# from https://git.tabularazor.org/~mikael/etc/tree/zsh/functions +for action in Start Restart Stop Reload Zap; { + eval "$action() { sudo /etc/init.d/\$1 ${action:l} ; }" +} -- cgit v1.2.3