summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_journalctl
AgeCommit message (Collapse)Author
2016-08-16zsh: _journalctl: also handle --root arg and --key=value style (#3956)Daniel Hahler
This will now also handle `journalctl --directory=/var/log/journal` properly.
2016-08-16zsh: _journalctl: do not complete exclusive modes (#3957)Daniel Hahler
After `journalctl -D /var/log/journal` "--directory", "--file", "--machine" and "--root" should not be available for completion, because they are exclusive. But multiple `--file` arguments are allowed.
2016-08-13zsh: _journalctl: improve support for handling mode args (#3952)Daniel Hahler
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).
2016-08-11zsh: _journalctl: handle --user in _journal_noneDaniel Hahler
This uses the same mechanism from _systemctl to inject `--user` into the `journalctrl -F _EXE` call to list executables. Before this patch the "commands" section would list executables from system units always.
2016-01-25zsh-completion: Escape results for `journalctl --unit`Douglas Christman
Escape colons and backslashes in unit names. This gives correct completions for units with names like systemd-backlight@backlight:acpi_video0.service and systemd-fsck@dev-disk-by\x2duuid-...
2015-10-25zsh-completion: journalctl --identifierZbigniew Jędrzejewski-Szmek
Fixes #1549.
2015-04-08zsh-completion: add missing -M completion for journalctlRonny Chevalier
2014-09-27shell-completion(zsh): journalctl's -b changesEric Cook
removed pointless index sort of bootids. use `compadd -a' to add each array, instead of expanding possibly hundreds of words needlessly. optional completion of -b
2013-12-18journalctl,zsh-completion: fix several issues in --help message textJason St. John
-- fix grammar and reword some descriptions for clarity -- add a useful description of what --follow does -- fix the description for --after-cursor -- properly introduce the FSS acronym for "Forward Secure Sealing" in both sections -- clarify the --disk-usage command [zj: perform similar changes to zsh completions] squash! journalctl: fix several issues in --help message text
2013-11-09zsh-completion: Move output modes to autoloadWilliam Giokas
2013-10-28journalctl: add --list-boots to show boot IDs and timesZbigniew Jędrzejewski-Szmek
Suggested by David Wilkins <dwilkins@maths.tcd.ie> in https://bugzilla.redhat.com/show_bug.cgi?id=967521: > [Specific boot ID is a] bit of a palaver to obtain. I consulted the > verbose dump of the journal to discover the _BOOT_ID for the > timestamp, and then generated the journal dump for that boot using > journalctl _BOOT_ID=foo -o short-monotonic.
2013-08-24zsh_completion: Fix --user-unit completionWilliam Giokas
_SYSTEMD_USER_UNIT in the --user-unit flag argument should instead be USER_UNIT. It should also have an optional `=` between the flag and the argument.
2013-08-23zsh_completion: Fix single letter argsWilliam Giokas
Things like -n to specify the lines to show with systemctl and journalctl accepts syntax like: journalctl -n4 systemctl -n14 Previously, typing `-nXX <tab>` where XX is a number, zsh would try to complete an integer. Now it will see the XX and use the _journalctl_none completion. This is also how any of the single letter options that take arguments work as well.
2013-08-14zsh_completion: Correctly display journal fieldsWilliam Giokas
Show equals and field values when used with _journal_none, don't show anything if we're not using _journal_none.
2013-08-02zsh_completion: Speed up noncached perf of _journalctlWilliam Giokas
Splitting things unnecessarily at newlines causes tab completion to take an extremely long time. Also add a note saying that caching is not good for journalctl's completion.
2013-08-02zsh_completion: Fix journalctl's --bootWilliam Giokas
Actually displays a list of boot ID's and offsets to the user
2013-08-02zsh_completion: Split out zsh _journalctlWilliam Giokas
Re-ordered some of the options and added a few that were missing previously as well.