summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJuraj Fiala <doctorjellyface@riseup.net>2015-08-01 17:45:00 +0200
committerJuraj Fiala <doctorjellyface@riseup.net>2015-08-01 17:45:00 +0200
commit800af047d7e5b2980c72bb5a444c1edeafc026e4 (patch)
treede17fb02d2d7ad950597f1cba202c446c5d35479 /plugins
parent3d5b3430fd9da12f6e33f534e487fe9b18928ac7 (diff)
downloadzsh-800af047d7e5b2980c72bb5a444c1edeafc026e4.tar.gz
zsh-800af047d7e5b2980c72bb5a444c1edeafc026e4.tar.bz2
zsh-800af047d7e5b2980c72bb5a444c1edeafc026e4.zip
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/systemd/systemd.plugin.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh
index 7d3db0f8e..503f7c138 100644
--- a/plugins/systemd/systemd.plugin.zsh
+++ b/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"