summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-06-12 14:01:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-06-12 14:01:24 +0200
commitf8441ebfdc0acc173373272cd0bb0a1bc791ff26 (patch)
tree33bb02eca515dc998dc98d64caebd805170a0c12 /etc
parentb30b40cc0c010b5e56bbf805dc86cb9204e389b0 (diff)
zshrc: update Status/Start/Stop/... shortcuts for systemd
Diffstat (limited to 'etc')
-rw-r--r--etc/.zshrc6
1 files changed, 3 insertions, 3 deletions
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}
}
}