summaryrefslogtreecommitdiff
path: root/plugins/systemd
diff options
context:
space:
mode:
authorscrouthtv <lennivh24@gmail.com>2021-12-30 10:44:57 +0100
committerGitHub <noreply@github.com>2021-12-30 10:44:57 +0100
commit116fc2feaa40bf4ce11c3ac72077a0ffba109525 (patch)
tree29d098419708f5374b5f2e524c1174997c676acb /plugins/systemd
parenta01cf8562700f3e5594f66daf40f31d9fe7ec570 (diff)
downloadzsh-116fc2feaa40bf4ce11c3ac72077a0ffba109525.tar.gz
zsh-116fc2feaa40bf4ce11c3ac72077a0ffba109525.tar.bz2
zsh-116fc2feaa40bf4ce11c3ac72077a0ffba109525.zip
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`
Diffstat (limited to 'plugins/systemd')
-rw-r--r--plugins/systemd/systemd.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
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
)