mirror of
https://github.com/systemd/systemd
synced 2024-07-21 02:05:05 +00:00
zsh-completion: systemctl: tweak --state list for startable units
This effectively ports over b1bdb6496c
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(){
|
||||
_sys_startable_units=( $( _filter_units_by_property ActiveState inactive $(
|
||||
_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*"
|
||||
)"}:#*@.*}%%[[:space:]]*}
|
||||
)) )
|
||||
|
|
Loading…
Reference in a new issue