45d640baee42953fe1f749fad7c195823e64c67e

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #4200 from lislon/systemd-patch

Add alias for "systemctl cat" and "systemctl edit"

Diff

 1diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh
 2index 7d3db0f8e3bac444e6a31f24295e32f7fb317b0a..07eb595a6debc9f5d938230f63bbd2b9ee3b467a 100644
 3--- a/plugins/systemd/systemd.plugin.zsh
 4+++ b/plugins/systemd/systemd.plugin.zsh
 5@@ -1,11 +1,12 @@
 6 user_commands=(
 7   list-units is-active status show help list-unit-files
 8-  is-enabled list-jobs show-environment)
 9+  is-enabled list-jobs show-environment cat)
10 
11 sudo_commands=(
12   start stop reload restart try-restart isolate kill
13   reset-failed enable disable reenable preset mask unmask
14-  link load cancel set-environment unset-environment)
15+  link load cancel set-environment unset-environment
16+  edit)
17 
18 for c in $user_commands; do; alias sc-$c="systemctl $c"; done
19 for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done