From b6be57f119f68bd8068701bfcf21e82c1664ed42 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Tue, 18 Jul 2017 06:57:53 +0200 Subject: [PATCH] [systemd] Added commands for system control These commands are user verified by systemd itself, so we don't need to `sudo` them. --- plugins/systemd/systemd.plugin.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index 5a35ecbc7..c98ed9cf4 100644 --- a/plugins/systemd/systemd.plugin.zsh +++ b/plugins/systemd/systemd.plugin.zsh @@ -1,6 +1,8 @@ user_commands=( list-units is-active status show help list-unit-files - is-enabled list-jobs show-environment cat list-timers) + is-enabled list-jobs show-environment cat list-timers + is-system-running default rescue halt poweroff reboot + emergency kexec exit suspend hibernate hybrid-sleep) sudo_commands=( start stop reload restart try-restart isolate kill @@ -14,3 +16,4 @@ for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done alias sc-enable-now="sc-enable --now" alias sc-disable-now="sc-disable --now" alias sc-mask-now="sc-mask --now" +