systemd.plugin.zsh 436 B

123456789101112
  1. user_commands=(
  2. list-units is-active status show help list-unit-files
  3. is-enabled list-jobs show-environment cat)
  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