diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-07-23 13:30:23 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-07-23 13:30:23 +0200 |
commit | c0d16ec6acc2ad128f74f5ea2bda8efb8830ab45 (patch) | |
tree | 21f9507191ca9ead12244f94b676aad679c1d734 /etc/function | |
parent | 39cfeb5df6a1a61f834d3eb44766037d7121173b (diff) |
Added Restart/Stop etc. for init.d
Diffstat (limited to 'etc/function')
-rw-r--r-- | etc/function | 5 |
1 files changed, 5 insertions, 0 deletions
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} ; }" +} |