diff options
author | Robby Russell <robby@planetargon.com> | 2015-08-12 21:11:33 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-08-12 21:11:33 -0700 |
commit | 45d640baee42953fe1f749fad7c195823e64c67e (patch) | |
tree | d460e1ce3815394ceb24e38431a2272bcb5d6bed /plugins | |
parent | 84ecc66cb7ce993e4551d9e9fc2e51c43387e749 (diff) | |
parent | 5554207279809b8232970361257ec1903f5c422d (diff) | |
download | zsh-45d640baee42953fe1f749fad7c195823e64c67e.tar.gz zsh-45d640baee42953fe1f749fad7c195823e64c67e.tar.bz2 zsh-45d640baee42953fe1f749fad7c195823e64c67e.zip |
Merge pull request #4200 from lislon/systemd-patch
Add alias for "systemctl cat" and "systemctl edit"
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/systemd/systemd.plugin.zsh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index 7d3db0f8e..07eb595a6 100644 --- a/plugins/systemd/systemd.plugin.zsh +++ b/plugins/systemd/systemd.plugin.zsh @@ -1,11 +1,12 @@ user_commands=( list-units is-active status show help list-unit-files - is-enabled list-jobs show-environment) + is-enabled list-jobs show-environment cat) sudo_commands=( start stop reload restart try-restart isolate kill reset-failed enable disable reenable preset mask unmask - link load cancel set-environment unset-environment) + link load cancel set-environment unset-environment + edit) 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 |