浏览代码

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`
scrouthtv 2 年之前
父节点
当前提交
116fc2feaa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/systemd/systemd.plugin.zsh

+ 1 - 1
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
 )