2012-10-01 14:29:06 +00:00
|
|
|
user_commands=(
|
|
|
|
list-units is-active status show help list-unit-files
|
2016-06-06 05:43:59 +00:00
|
|
|
is-enabled list-jobs show-environment cat list-timers)
|
2012-10-01 14:29:06 +00:00
|
|
|
|
|
|
|
sudo_commands=(
|
|
|
|
start stop reload restart try-restart isolate kill
|
|
|
|
reset-failed enable disable reenable preset mask unmask
|
2015-07-31 11:58:02 +00:00
|
|
|
link load cancel set-environment unset-environment
|
|
|
|
edit)
|
2012-10-01 14:29:06 +00:00
|
|
|
|
|
|
|
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
|
2018-08-19 19:39:58 +00:00
|
|
|
for c in $user_commands; do; alias scu-$c="systemctl --user $c"; done
|
|
|
|
for c in $sudo_commands; do; alias scu-$c="systemctl --user $c"; done
|
2015-09-06 11:01:09 +00:00
|
|
|
|
|
|
|
alias sc-enable-now="sc-enable --now"
|
|
|
|
alias sc-disable-now="sc-disable --now"
|
|
|
|
alias sc-mask-now="sc-mask --now"
|
2018-08-19 19:39:58 +00:00
|
|
|
|
|
|
|
alias scu-enable-now="scu-enable --now"
|
|
|
|
alias scu-disable-now="scu-disable --now"
|
|
|
|
alias scu-mask-now="scu-mask --now"
|