naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
572a44
From 30b346ca4f331934ce49a1199137778562ff38d2 Mon Sep 17 00:00:00 2001
572a44
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
572a44
Date: Fri, 15 Nov 2013 19:00:01 -0500
572a44
Subject: [PATCH] bash-completion: journalctl --file
572a44
572a44
Conflicts:
572a44
	shell-completion/bash/journalctl
572a44
---
572a44
 shell-completion/bash/journalctl | 6 +++++-
572a44
 1 file changed, 5 insertions(+), 1 deletion(-)
572a44
572a44
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl
572a44
index 3c40d57..441b636 100644
572a44
--- a/shell-completion/bash/journalctl
572a44
+++ b/shell-completion/bash/journalctl
572a44
@@ -43,7 +43,7 @@ _journalctl() {
572a44
                               -h --help -l --local --new-id128 -m --merge --no-pager
572a44
                               --no-tail -q --quiet --setup-keys --this-boot --verify
572a44
                               --version --list-catalog --update-catalog'
572a44
-                       [ARG]='-b --boot --this-boot -D --directory -F --field
572a44
+                       [ARG]='-b --boot --this-boot -D --directory --file -F --field
572a44
                               -o --output -u --unit --user-unit'
572a44
                 [ARGUNKNOWN]='-c --cursor --interval -n --lines -p --priority --since --until
572a44
                               --verify-key'
572a44
@@ -58,6 +58,10 @@ _journalctl() {
572a44
                                 comps=$(compgen -d -- "$cur")
572a44
                                 compopt -o filenames
572a44
                         ;;
572a44
+                        --file)
572a44
+                                comps=$(compgen -f -- "$cur")
572a44
+                                compopt -o filenames
572a44
+                        ;;
572a44
                         --output|-o)
572a44
                                 comps='short short-monotonic verbose export json cat'
572a44
                         ;;