From 89df08054ffc766ffa61c6f6a9a1fc1f34a7cceb Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 14 Apr 2015 10:22:10 -0700 Subject: [PATCH] Add scu-* aliases for systemctl --user commands. Plugin: systemd. --- plugins/systemd/systemd.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index 5a35ecbc..752c46e3 100644 --- a/plugins/systemd/systemd.plugin.zsh +++ b/plugins/systemd/systemd.plugin.zsh @@ -8,8 +8,11 @@ sudo_commands=( link load cancel set-environment unset-environment edit) +all_commands=($user_commands $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 +for c in $all_commands; do; alias scu-$c="systemctl --user $c"; done alias sc-enable-now="sc-enable --now" alias sc-disable-now="sc-disable --now"