diff options
author | Sumit Sahrawat <sumitsahrawat@outlook.com> | 2018-08-20 01:09:58 +0530 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-08-19 21:39:58 +0200 |
commit | b743ce92249726fe444911213bf2ed55099158d3 (patch) | |
tree | 1329856bad64c899afc27a614c899b0727543761 /plugins/systemd/systemd.plugin.zsh | |
parent | be65adc6c364e842307c7b4e8da30f0162b629f0 (diff) | |
download | zsh-b743ce92249726fe444911213bf2ed55099158d3.tar.gz zsh-b743ce92249726fe444911213bf2ed55099158d3.tar.bz2 zsh-b743ce92249726fe444911213bf2ed55099158d3.zip |
Add scu-* aliases for 'systemctl --user' commands (#6661)
Diffstat (limited to 'plugins/systemd/systemd.plugin.zsh')
-rw-r--r-- | plugins/systemd/systemd.plugin.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index 5a35ecbc7..7cd27d450 100644 --- a/plugins/systemd/systemd.plugin.zsh +++ b/plugins/systemd/systemd.plugin.zsh @@ -10,7 +10,13 @@ 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 $user_commands; do; alias scu-$c="systemctl --user $c"; done +for c in $sudo_commands; do; alias scu-$c="systemctl --user $c"; done alias sc-enable-now="sc-enable --now" alias sc-disable-now="sc-disable --now" alias sc-mask-now="sc-mask --now" + +alias scu-enable-now="scu-enable --now" +alias scu-disable-now="scu-disable --now" +alias scu-mask-now="scu-mask --now" |