From 116fc2feaa40bf4ce11c3ac72077a0ffba109525 Mon Sep 17 00:00:00 2001 From: scrouthtv Date: Thu, 30 Dec 2021 10:44:57 +0100 Subject: [PATCH] fix(systemd): enable `--user` on restart command (#10543) `restart` is a unit-related command, not power-related, so it should appear as `sc-restart=sudo systemctl restart` and `scu-restart=systemctl --user restart` --- plugins/systemd/systemd.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index e9ac64382..7afd2be58 100644 --- a/plugins/systemd/systemd.plugin.zsh +++ b/plugins/systemd/systemd.plugin.zsh @@ -45,6 +45,7 @@ sudo_commands=( reload-or-restart reset-failed rescue + restart revert set-default set-environment @@ -63,7 +64,6 @@ power_commands=( hybrid-sleep poweroff reboot - restart suspend )