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