daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
803fb7
From 6cc26ef0b749f56f184faacde210c6674ab83cf4 Mon Sep 17 00:00:00 2001
803fb7
From: Ronny Chevalier <chevalier.ronny@gmail.com>
803fb7
Date: Tue, 7 Apr 2015 19:35:57 +0200
803fb7
Subject: [PATCH] zsh-completion: add missing -M completion for journalctl
803fb7
803fb7
(cherry picked from commit b178d279d92fdf002b18dd2f06f2353af14d0a6e)
803fb7
803fb7
Cherry-picked from: 6ff6bbf
803fb7
Resolves: #1222517
803fb7
---
803fb7
 shell-completion/zsh/_journalctl | 1 +
803fb7
 1 file changed, 1 insertion(+)
803fb7
803fb7
diff --git a/shell-completion/zsh/_journalctl b/shell-completion/zsh/_journalctl
803fb7
index a469bbc9a..863348e05 100644
803fb7
--- a/shell-completion/zsh/_journalctl
803fb7
+++ b/shell-completion/zsh/_journalctl
803fb7
@@ -76,6 +76,7 @@ _arguments -s \
803fb7
     {-F,--field=}'[List all values a certain field takes]:Fields:_list_fields' \
803fb7
     '--system[Show system and kernel messages]' \
803fb7
     '--user[Show messages from user services]' \
803fb7
+    {-M+,--machine=}'[Operate on local container]:machines:_sd_machines' \
803fb7
     {-D+,--directory=}'[Show journal files from directory]:directories:_directories' \
803fb7
     '--file=[Operate on specified journal files]:file:_files' \
803fb7
     '--root=[Operate on catalog hierarchy under specified directory]:directories:_directories' \