dcavalca / rpms / systemd

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