mirror of
https://github.com/systemd/systemd.git
synced 2025-02-28 05:57:33 +03:00
zsh-completion: systemctl: tweak --state list for startable units
This effectively ports over b1bdb6496c07fc4fcf3f0feae69b5ef89ae557d9 from the bash completion to zsh. Modulo the new function, since it's unrelated perf. improvement. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
ff728637cc
commit
8a6236e51a
@ -143,7 +143,7 @@ _systemctl_active_units() {_sys_active_units=( ${${(f)"$(__systemctl list-unit
|
|||||||
_systemctl_startable_units(){
|
_systemctl_startable_units(){
|
||||||
_sys_startable_units=( $( _filter_units_by_property ActiveState inactive $(
|
_sys_startable_units=( $( _filter_units_by_property ActiveState inactive $(
|
||||||
_filter_units_by_property CanStart yes ${${${(f)"$(
|
_filter_units_by_property CanStart yes ${${${(f)"$(
|
||||||
__systemctl $mode list-unit-files --state enabled,disabled,static "$PREFIX*"
|
__systemctl $mode list-unit-files --state enabled,enabled-runtime,linked,linked-runtime,static,indirect,disabled,generated,transient "$PREFIX*"
|
||||||
__systemctl $mode list-units --state inactive,failed "$PREFIX*"
|
__systemctl $mode list-units --state inactive,failed "$PREFIX*"
|
||||||
)"}:#*@.*}%%[[:space:]]*}
|
)"}:#*@.*}%%[[:space:]]*}
|
||||||
)) )
|
)) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user