From f8441ebfdc0acc173373272cd0bb0a1bc791ff26 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Jun 2016 14:01:24 +0200 Subject: zshrc: update Status/Start/Stop/... shortcuts for systemd --- etc/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/.zshrc') diff --git a/etc/.zshrc b/etc/.zshrc index dba8922..f5062a1 100644 --- a/etc/.zshrc +++ b/etc/.zshrc @@ -175,9 +175,9 @@ function xhashd { } function Status Start Stop Restart Reload { - typeset script - for script in ${*}; { - sudo /etc/init.d/${script} ${0:l} + typeset service + for service in "${@}"; { + sudo systemctl ${0:l} ${service} } } -- cgit v1.2.3