From 800af047d7e5b2980c72bb5a444c1edeafc026e4 Mon Sep 17 00:00:00 2001 From: Juraj Fiala Date: Sat, 1 Aug 2015 17:45:00 +0200 Subject: [PATCH] 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. --- plugins/systemd/systemd.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index 7d3db0f8..503f7c13 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"