projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff72863
)
zsh-completion: systemctl: tweak --state list for startable units
author
Emil Velikov
<emil.velikov@collabora.com>
Mon, 30 Apr 2018 13:45:25 +0000
(14:45 +0100)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Mon, 11 Jun 2018 16:09:56 +0000
(17:09 +0100)
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>
shell-completion/zsh/_systemctl.in
patch
|
blob
|
history
diff --git
a/shell-completion/zsh/_systemctl.in
b/shell-completion/zsh/_systemctl.in
index
2bb2fff
..
9ade70b
100644
(file)
--- 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:]]*}
)) )