teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0124-zsh-completion-add-missing-M-completion-for-journalc.patch

Zbigniew Jędrzejewski-Szmek ef7b48
From 5fa78764c2405083d5023f56799e518e641abb2f Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek ef7b48
From: Ronny Chevalier <chevalier.ronny@gmail.com>
Zbigniew Jędrzejewski-Szmek ef7b48
Date: Tue, 7 Apr 2015 19:35:57 +0200
Zbigniew Jędrzejewski-Szmek ef7b48
Subject: [PATCH] zsh-completion: add missing -M completion for journalctl
Zbigniew Jędrzejewski-Szmek ef7b48
Zbigniew Jędrzejewski-Szmek ef7b48
(cherry picked from commit b178d279d92fdf002b18dd2f06f2353af14d0a6e)
Zbigniew Jędrzejewski-Szmek ef7b48
---
Zbigniew Jędrzejewski-Szmek ef7b48
 shell-completion/zsh/_journalctl | 1 +
Zbigniew Jędrzejewski-Szmek ef7b48
 1 file changed, 1 insertion(+)
Zbigniew Jędrzejewski-Szmek ef7b48
Zbigniew Jędrzejewski-Szmek ef7b48
diff --git a/shell-completion/zsh/_journalctl b/shell-completion/zsh/_journalctl
Zbigniew Jędrzejewski-Szmek ef7b48
index a469bbc9a7..863348e050 100644
Zbigniew Jędrzejewski-Szmek ef7b48
--- a/shell-completion/zsh/_journalctl
Zbigniew Jędrzejewski-Szmek ef7b48
+++ b/shell-completion/zsh/_journalctl
Zbigniew Jędrzejewski-Szmek ef7b48
@@ -76,6 +76,7 @@ _arguments -s \
Zbigniew Jędrzejewski-Szmek ef7b48
     {-F,--field=}'[List all values a certain field takes]:Fields:_list_fields' \
Zbigniew Jędrzejewski-Szmek ef7b48
     '--system[Show system and kernel messages]' \
Zbigniew Jędrzejewski-Szmek ef7b48
     '--user[Show messages from user services]' \
Zbigniew Jędrzejewski-Szmek ef7b48
+    {-M+,--machine=}'[Operate on local container]:machines:_sd_machines' \
Zbigniew Jędrzejewski-Szmek ef7b48
     {-D+,--directory=}'[Show journal files from directory]:directories:_directories' \
Zbigniew Jędrzejewski-Szmek ef7b48
     '--file=[Operate on specified journal files]:file:_files' \
Zbigniew Jędrzejewski-Szmek ef7b48
     '--root=[Operate on catalog hierarchy under specified directory]:directories:_directories' \