116fc2feaa40bf4ce11c3ac72077a0ffba109525
Author scrouthtv <lennivh24@gmail.com> Committer GitHub <noreply@github.com> Date 2021-12-30 09:44 UTC
Message 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`
Diff 1 diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh
2 index e9ac6438263fbd5eb88880b93ff5a867c7412b66..7afd2be58ebdc2b6a8bdbc934d8c0dd470ef0d7b 100644
3 --- a/plugins/systemd/systemd.plugin.zsh
4 +++ b/plugins/systemd/systemd.plugin.zsh
5 @@ -45,6 +45,7 @@ sudo_commands=(
6 reload-or-restart
7 reset-failed
8 rescue
9 + restart
10 revert
11 set-default
12 set-environment
13 @@ -63,7 +64,6 @@ power_commands=(
14 hybrid-sleep
15 poweroff
16 reboot
17 - restart
18 suspend
19 )
20