Blame view
repos/robbyrussell/oh-my-zsh/plugins/systemd/systemd.plugin.zsh
561 Bytes
|
093a6c34b
|
1 2 |
user_commands=(
list-units is-active status show help list-unit-files
|
|
d9bebbb3c
|
3 |
is-enabled list-jobs show-environment cat list-timers) |
|
093a6c34b
|
4 5 6 7 |
sudo_commands=(
start stop reload restart try-restart isolate kill
reset-failed enable disable reenable preset mask unmask
|
|
dcebc9e8f
|
8 9 |
link load cancel set-environment unset-environment
edit)
|
|
093a6c34b
|
10 11 12 |
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 |
|
ed37aae5b
|
13 14 15 16 |
alias sc-enable-now="sc-enable --now" alias sc-disable-now="sc-disable --now" alias sc-mask-now="sc-mask --now" |