systemd.plugin.zsh 425 B

1234567891011
  1. user_commands=(
  2. list-units is-active status show help list-unit-files
  3. is-enabled list-jobs show-environment)
  4. sudo_commands=(
  5. start stop reload restart try-restart isolate kill
  6. reset-failed enable disable reenable preset mask unmask
  7. link load cancel set-environment unset-environment)
  8. for c in $user_commands; do; alias sc-$c="systemctl $c"; done
  9. for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done