chiark / gitweb /
bash-completion: journalctl query by binary and device
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Feb 2013 14:24:10 +0000 (15:24 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Feb 2013 04:16:58 +0000 (23:16 -0500)
commit1883552c3d80d44f4cb368874d54c1cb15b83e61
tree0cb7b9abd2896a0e30a8ada0ca6a6c25efd819af
parent3679d1126bae52e02f6cd60fca196f616b9e660d
bash-completion: journalctl query by binary and device

The approach taken is different between the two:
- since there are many files in /usr, but messages appear
  only for a tiny subset, the completion is performed
  only for stuff shown by journalctl -F _EXE. This makes
  sense because the list is already in proper form.
- since it is hard to convert _KERNEL_DEVICE to device
  file name, simply all files in /dev/ are used as possible
  completions.

Unfortunately zsh completion requires more work and is not
covered by this commit.
shell-completion/systemd-bash-completion.sh