diff options
author | Robby Russell <robby@planetargon.com> | 2012-12-02 12:30:51 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-12-02 12:30:51 -0800 |
commit | 93f41fc5fceb293cedfb01418707f9dca34fa63a (patch) | |
tree | 1f35b04e694b994d65dfe2a6a577f42d252c5a3a /plugins/systemd | |
parent | fe094712fb0c896eeec55b686807011226bc9208 (diff) | |
parent | 04d08577e22a404df5b1c0fd1294e3f03f9d914b (diff) | |
download | zsh-93f41fc5fceb293cedfb01418707f9dca34fa63a.tar.gz zsh-93f41fc5fceb293cedfb01418707f9dca34fa63a.tar.bz2 zsh-93f41fc5fceb293cedfb01418707f9dca34fa63a.zip |
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/systemd')
-rw-r--r-- | plugins/systemd/systemd.plugin.zsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh new file mode 100644 index 000000000..7d3db0f8e --- /dev/null +++ b/plugins/systemd/systemd.plugin.zsh @@ -0,0 +1,11 @@ +user_commands=( + list-units is-active status show help list-unit-files + is-enabled list-jobs show-environment) + +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) + +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 |