diff options
| author | Petr Šabata <contyk@redhat.com> | 2020-02-10 19:16:02 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 19:16:02 +0100 | 
| commit | bfec31666aa9e61cc869fa6e93a031b53fe47d44 (patch) | |
| tree | 25504c51cf6d79e32f07fca484252a9f19d9a554 /plugins/systemd | |
| parent | beab76edfce3500b2fb357c69f3d4fb2a17898fe (diff) | |
| download | zsh-bfec31666aa9e61cc869fa6e93a031b53fe47d44.tar.gz zsh-bfec31666aa9e61cc869fa6e93a031b53fe47d44.tar.bz2 zsh-bfec31666aa9e61cc869fa6e93a031b53fe47d44.zip | |
systemd: refactor and add latest commands (#6250)
* Order systemctl commands alphabetically
Simplifying the plugin maintenance.
Signed-off-by: Petr Šabata <contyk@redhat.com>
* Include the latest systemctl commands
Based on systemd-233.  I'm still keeping the old, now unsupported
commands for backwards compatibility as well.
Signed-off-by: Petr Šabata <contyk@redhat.com>
* Add daemon-reload (#3701)
Closes #3701
Co-authored-by: Javier Tia <javier.tia@gmail.com>
Diffstat (limited to 'plugins/systemd')
| -rw-r--r-- | plugins/systemd/systemd.plugin.zsh | 65 | 
1 files changed, 59 insertions, 6 deletions
| diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh index 7cd27d450..201ffd998 100644 --- a/plugins/systemd/systemd.plugin.zsh +++ b/plugins/systemd/systemd.plugin.zsh @@ -1,12 +1,65 @@  user_commands=( -  list-units is-active status show help list-unit-files -  is-enabled list-jobs show-environment cat list-timers) +  cat +  get-default +  help +  is-active +  is-enabled +  is-failed +  is-system-running +  list-dependencies +  list-jobs +  list-sockets +  list-timers +  list-unit-files +  list-units +  show +  show-environment +  status)  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 -  edit) +  add-requires +  add-wants +  cancel +  daemon-reexec +  daemon-reload +  default +  disable +  edit +  emergency +  enable +  halt +  hibernate +  hybrid-sleep +  import-environment +  isolate +  kexec +  kill +  link +  list-machines +  load +  mask +  poweroff +  preset +  preset-all +  reboot +  reenable +  reload +  reload-or-restart +  reset-failed +  rescue +  restart +  revert +  set-default +  set-environment +  set-property +  start +  stop +  suspend +  switch-root +  try-reload-or-restart +  try-restart +  unmask +  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 | 
