diff options
Diffstat (limited to 'etc/function')
-rw-r--r-- | etc/function | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/function b/etc/function index ecd9ea4..19e5ebd 100644 --- a/etc/function +++ b/etc/function @@ -16,5 +16,11 @@ chpwd # from https://git.tabularazor.org/~mikael/etc/tree/zsh/functions for action in Start Stop Restart Reload; { - eval "$action() { sudo /etc/init.d/\$1 ${action:l} ; }" + eval "function $action { + typeset action + for action in \$*; { + sudo /etc/init.d/\$action ${action:l} + } + }" } +unset action |