mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
zsh: use sys_really_all_units for non-template names
The systemctl invocations used for these completions match the ones used for the _sys_really_all_units parameter, so we should really just use the cached parameter rather than recomputing the result.
This commit is contained in:
parent
97eb826821
commit
c8e2cd79c1
@ -194,10 +194,10 @@ __systemctl()
|
||||
}
|
||||
|
||||
(( $+functions[_systemctl_get_non_template_names] )) ||
|
||||
_systemctl_get_non_template_names() { echo -E - ${^${(R)${(f)"$(
|
||||
__systemctl list-unit-files
|
||||
__systemctl list-units --all
|
||||
)"}:#*@.*}%%[[:space:]]*} }
|
||||
_systemctl_get_non_template_names() {
|
||||
_systemctl_really_all_units
|
||||
print -r - ${_sys_really_all_units:#*@.*}
|
||||
}
|
||||
|
||||
(( $+functions[_systemctl_get_template_names] )) ||
|
||||
_systemctl_get_template_names() {
|
||||
|
Loading…
Reference in New Issue
Block a user