chiark / gitweb /
shell-completion: fix completion of inactive units
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 Oct 2014 00:20:07 +0000 (20:20 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 Oct 2014 01:18:42 +0000 (21:18 -0400)
commitf29c77bc0179b0fa57407dbe30b495be9f5ad2e8
treeeade4b1dc7e61dce57dd6fed52539299992c5f4a
parent1f8af042d99cf40543dad0ec049cf7aa2911feba
shell-completion: fix completion of inactive units

Units which not loaded were not proposed properly. OTOH, we should
filter units from get-unit-files by their state if they are currently
loaded. Bring zsh completions in line with bash completion, the same
logic should be used in both implementations.

https://bugzilla.redhat.com/show_bug.cgi?id=1024379
https://bugzilla.redhat.com/show_bug.cgi?id=790768
https://bugs.freedesktop.org/show_bug.cgi?id=84720
shell-completion/bash/systemctl.in
shell-completion/zsh/_systemctl.in