zsh: _journalctl: improve support for handling mode args (#3952)
authorDaniel Hahler <github@thequod.de>
Sat, 13 Aug 2016 14:41:22 +0000 (16:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Aug 2016 14:41:22 +0000 (10:41 -0400)
commitd551b8fcf75c32e34115a7ca638686e80be57657
tree2c25ed6b31e8623d58f63249f2d95e24e602cff9
parent9c5077fed42dc3cd2517a7ab816babef549dd079
zsh: _journalctl: improve support for handling mode args (#3952)

This only completes fields from `journalctl --user` in _journal_fields when `--user`
is used.

It also changes $_sys_service_mgr to include both `--system` and `--user`,
because `journalctl` behaves different from `systemctl` in this regard.
No attempt is made to filter out invalid combinations, e.g. when using both
`--directory` and `--system` (see https://github.com/systemd/systemd/issues/3949).
shell-completion/zsh/_journalctl