anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
1ff636
From caa80561b4acad9d66747ff6eb2b499ea67139e9 Mon Sep 17 00:00:00 2001
1ff636
From: Ronny Chevalier <chevalier.ronny@gmail.com>
1ff636
Date: Tue, 7 Apr 2015 19:35:13 +0200
1ff636
Subject: [PATCH] zsh-completion: update loginctl
1ff636
1ff636
(cherry picked from commit 8470025541039f39391815b2ac93952003b7eee8)
1ff636
1ff636
Cherry-picked from: def740b
1ff636
Resolves: #1222517
1ff636
---
1ff636
 shell-completion/zsh/_loginctl | 5 +++--
1ff636
 1 file changed, 3 insertions(+), 2 deletions(-)
1ff636
1ff636
diff --git a/shell-completion/zsh/_loginctl b/shell-completion/zsh/_loginctl
c62b8e
index 0de66e191f..bd33b66fae 100644
1ff636
--- a/shell-completion/zsh/_loginctl
1ff636
+++ b/shell-completion/zsh/_loginctl
1ff636
@@ -102,10 +102,11 @@ _arguments -s \
1ff636
     '--kill-who=[Who to send signal to]:killwho:(main control all)' \
1ff636
     {-s+,--signal=}'[Which signal to send]:signal:_signals' \
1ff636
     {-H+,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
1ff636
-    {-M+,--machine=}'[Operate on local container]:machine' \
1ff636
-    {-P,--privileged}'[Acquire privileges before execution]' \
1ff636
+    {-M+,--machine=}'[Operate on local container]:machine:_sd_machines' \
1ff636
     {-l,--full}'[Do not ellipsize output]' \
1ff636
     '--no-pager[Do not pipe output into a pager]' \
1ff636
     '--no-legend[Do not show the headers and footers]' \
1ff636
     '--no-ask-password[Do not ask for system passwords]' \
1ff636
+    {-n+,--lines=}'[Number of journal entries to show]' \
1ff636
+    {-o+,--output=}'[Change journal output mode]:output modes:_sd_outputmodes' \
1ff636
     '*::loginctl command:_loginctl_command'