mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Order systemctl commands alphabetically
Simplifying the plugin maintenance. Signed-off-by: Petr Šabata <contyk@redhat.com>
This commit is contained in:
parent
d848c94804
commit
fba44b9c50
1 changed files with 31 additions and 6 deletions
|
|
@ -1,12 +1,37 @@
|
||||||
user_commands=(
|
user_commands=(
|
||||||
list-units is-active status show help list-unit-files
|
cat
|
||||||
is-enabled list-jobs show-environment cat list-timers)
|
help
|
||||||
|
is-active
|
||||||
|
is-enabled
|
||||||
|
list-jobs
|
||||||
|
list-timers
|
||||||
|
list-unit-files
|
||||||
|
list-units
|
||||||
|
show
|
||||||
|
show-environment
|
||||||
|
status)
|
||||||
|
|
||||||
sudo_commands=(
|
sudo_commands=(
|
||||||
start stop reload restart try-restart isolate kill
|
cancel
|
||||||
reset-failed enable disable reenable preset mask unmask
|
disable
|
||||||
link load cancel set-environment unset-environment
|
edit
|
||||||
edit)
|
enable
|
||||||
|
isolate
|
||||||
|
kill
|
||||||
|
link
|
||||||
|
load
|
||||||
|
mask
|
||||||
|
preset
|
||||||
|
reenable
|
||||||
|
reload
|
||||||
|
reset-failed
|
||||||
|
restart
|
||||||
|
set-environment
|
||||||
|
start
|
||||||
|
stop
|
||||||
|
try-restart
|
||||||
|
unmask
|
||||||
|
unset-environment)
|
||||||
|
|
||||||
for c in $user_commands; do; alias sc-$c="systemctl $c"; done
|
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
|
for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue