richardphibel / rpms / systemd

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