diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-06-12 14:01:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-06-12 14:01:24 +0200 |
commit | f8441ebfdc0acc173373272cd0bb0a1bc791ff26 (patch) | |
tree | 33bb02eca515dc998dc98d64caebd805170a0c12 /etc | |
parent | b30b40cc0c010b5e56bbf805dc86cb9204e389b0 (diff) |
zshrc: update Status/Start/Stop/... shortcuts for systemd
Diffstat (limited to 'etc')
-rw-r--r-- | etc/.zshrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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} } } |