From: Emil Velikov Date: Mon, 30 Apr 2018 13:45:25 +0000 (+0100) Subject: zsh-completion: systemctl: tweak --state list for startable units X-Git-Tag: v239~78^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a6236e51aea33788f543f79aa611486a17cd612;p=thirdparty%2Fsystemd.git 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 --- diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index 2bb2fff376f..9ade70b820f 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -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:]]*} )) )