summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuraj Fiala <doctorjellyface@riseup.net>2015-09-06 13:01:09 +0200
committerJuraj Fiala <doctorjellyface@riseup.net>2015-09-06 13:01:09 +0200
commit86d881c47de3d0ed791e1e7d8c2ed480e6c781ee (patch)
tree29a545c73f0dcd89b357f5a9f36e4e843d4618e9
parent800af047d7e5b2980c72bb5a444c1edeafc026e4 (diff)
downloadzsh-86d881c47de3d0ed791e1e7d8c2ed480e6c781ee.tar.gz
zsh-86d881c47de3d0ed791e1e7d8c2ed480e6c781ee.tar.bz2
zsh-86d881c47de3d0ed791e1e7d8c2ed480e6c781ee.zip
Added aliases for --now commands
Also removed the old sc-launch alias because this is just better.
-rw-r--r--plugins/systemd/systemd.plugin.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh
index 503f7c138..f9b522e40 100644
--- a/plugins/systemd/systemd.plugin.zsh
+++ b/plugins/systemd/systemd.plugin.zsh
@@ -9,4 +9,7 @@ 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"
+
+alias sc-enable-now="sc-enable --now"
+alias sc-disable-now="sc-disable --now"
+alias sc-mask-now="sc-mask --now"