浏览代码

Add sc-launch as a shortcut for start & enable

I've heard many people requesting systemd to add this functionality. It's very handy under Arch.
Juraj Fiala 9 年之前
父节点
当前提交
800af047d7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugins/systemd/systemd.plugin.zsh

+ 1 - 0
plugins/systemd/systemd.plugin.zsh

@@ -9,3 +9,4 @@ sudo_commands=(
 
 for c in $user_commands; do; alias sc-$c="systemctl $c"; done
 for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done
+alias sc-launch="sudo systemctl start $c && sudo systemctl enable $c"