summaryrefslogtreecommitdiff
path: root/shell-completion/bash/journalctl
Commit message (Collapse)AuthorAge
* Revert "completion: don't offer completions for journalctl -b"Lennart Poettering2013-12-26
| | | | This reverts commit c756a6d57cdb678b702c68913dae3e11ff0427ae.
* completion: don't offer completions for journalctl -bDave Reisner2013-12-25
| | | | | | Since this is a shortopt with an optional argument, assume the user knows what they're doing. The longopts --boot and --this-boot will continue to offer boot IDs as completions.
* bash-completion: journalctl --fileZbigniew Jędrzejewski-Szmek2013-11-15
|
* journalctl: add --list-boots to show boot IDs and timesZbigniew Jędrzejewski-Szmek2013-10-28
| | | | | | | | | | 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.
* bash-completion: use a better definition of __contains_wordDave Reisner2013-07-30
| | | | | | | | | | - scope the iterator var - use the correct, quoted, non-expansion prone positional parameter notation - prevent expansion on RHS of comparison - remove unneeded explicit returns. This really should be defined only once...
* journalctl: Add support for showing messages from a previous bootJan Janssen2013-07-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I redid the boot ID look up to use enumerate_unique. This is quite fast if the cache is warm but painfully slow if it isn't. It has a slight chance of returning the wrong order if realtime clock jumps around. This one has to do n searches for every boot ID there is plus a sort, so it depends heavily on cache hotness. This is in contrast to the other way of look-up through filtering by a MESSAGE_ID, which only needs about 1 seek + whatever amount of relative IDs you want to walk. I also have a linked-list + (in-place) mergesort version of this patch, which has pretty much the same runtime. But since this one is using libc sorting and armortized allocation, I prefer this one. To summarize: The MESSAGE_ID way is a *lot* faster but can be incomplete due to rotation, while the enumerate+sort will find every boot ID out there but will be painfully slow for large journals and cold caches. You choose :P Jan
* journalctl: add --system/--user flagsZbigniew Jędrzejewski-Szmek2013-06-10
| | | | | | | | --user basically gives messages from your own systemd --user services. --system basically gives messages from PID 1, kernel, and --system services. Those two options are not exahustive, because a priviledged user might be able to see messages from other users, and they will not be shown with either or both of those flags.
* shell-completion/bash/journalctl: suppress stderrHarald Hoyer2013-03-19
|
* bash-completion: split completions and move to new locationMichael Biebl2013-03-03
Split the large bash completion script into separate, smaller files each named after the binary it is used for and move the files to /usr/share/bash-completion/completions. This way the completions can be loaded on demand and we only install the completions for the tools we actually build. The old path /etc/bash_completion.d/ is deprecated and will disappear in the future.