aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-04-30 14:45:25 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2018-06-11 17:09:56 +0100
commit8a6236e51aea33788f543f79aa611486a17cd612 (patch)
treebae36a691d153d669471cb7080d6f8c7b167450b /shell-completion
parentzsh-completion: systemctl: pass only $PREFIX* to list-unit* (diff)
downloadsystemd-8a6236e51aea33788f543f79aa611486a17cd612.tar.gz
systemd-8a6236e51aea33788f543f79aa611486a17cd612.tar.bz2
systemd-8a6236e51aea33788f543f79aa611486a17cd612.zip
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>
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/zsh/_systemctl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
index 2bb2fff37..9ade70b82 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:]]*}
)) )