systemd.plugin.zsh 561 B

12345678910111213141516
  1. user_commands=(
  2. list-units is-active status show help list-unit-files
  3. is-enabled list-jobs show-environment cat list-timers)
  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. edit)
  9. for c in $user_commands; do; alias sc-$c="systemctl $c"; done
  10. for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done
  11. alias sc-enable-now="sc-enable --now"
  12. alias sc-disable-now="sc-disable --now"
  13. alias sc-mask-now="sc-mask --now"