teknoraver / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone

Blame 0072-zsh-add-completion-for-add-wants-and-add-requires-60.patch

Zbigniew Jędrzejewski-Szmek f4a676
From 6389db18b0cec4637af4483923b57a7a0a125317 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek f4a676
From: Felipe Sateler <fsateler@users.noreply.github.com>
Zbigniew Jędrzejewski-Szmek f4a676
Date: Tue, 6 Jun 2017 21:32:15 -0400
Zbigniew Jędrzejewski-Szmek f4a676
Subject: [PATCH] zsh: add completion for add-wants and add-requires (#6082)
Zbigniew Jędrzejewski-Szmek f4a676
Zbigniew Jędrzejewski-Szmek f4a676
(cherry picked from commit d739ce98f33fce467e1d5b447140eb53262244d3)
Zbigniew Jędrzejewski-Szmek f4a676
---
Zbigniew Jędrzejewski-Szmek f4a676
 shell-completion/zsh/_systemctl.in | 4 +++-
Zbigniew Jędrzejewski-Szmek f4a676
 1 file changed, 3 insertions(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek f4a676
Zbigniew Jędrzejewski-Szmek f4a676
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
Zbigniew Jędrzejewski-Szmek f4a676
index 7d3d47bef9..aad700b739 100644
Zbigniew Jędrzejewski-Szmek f4a676
--- a/shell-completion/zsh/_systemctl.in
Zbigniew Jędrzejewski-Szmek f4a676
+++ b/shell-completion/zsh/_systemctl.in
Zbigniew Jędrzejewski-Szmek f4a676
@@ -29,6 +29,8 @@
Zbigniew Jędrzejewski-Szmek f4a676
     "list-unit-files:List installed unit files"
Zbigniew Jędrzejewski-Szmek f4a676
     "enable:Enable one or more unit files"
Zbigniew Jędrzejewski-Szmek f4a676
     "disable:Disable one or more unit files"
Zbigniew Jędrzejewski-Szmek f4a676
+    "add-wants:Add Wants= dependencies to a unit"
Zbigniew Jędrzejewski-Szmek f4a676
+    "add-requires:Add Requires= dependencies to a unit"
Zbigniew Jędrzejewski-Szmek f4a676
     "reenable:Reenable one or more unit files"
Zbigniew Jędrzejewski-Szmek f4a676
     "preset:Enable/disable one or more unit files based on preset configuration"
Zbigniew Jędrzejewski-Szmek f4a676
     "set-default:Set the default target"
Zbigniew Jędrzejewski-Szmek f4a676
@@ -158,7 +160,7 @@ _systemctl_unit_state() { typeset -gA _sys_unit_state; _sys_unit_state=( $(__sys
Zbigniew Jędrzejewski-Szmek f4a676
 
Zbigniew Jędrzejewski-Szmek f4a676
 local fun
Zbigniew Jędrzejewski-Szmek f4a676
 # Completion functions for ALL_UNITS
Zbigniew Jędrzejewski-Szmek f4a676
-for fun in is-active is-failed is-enabled status show cat mask preset help list-dependencies edit revert ; do
Zbigniew Jędrzejewski-Szmek f4a676
+for fun in is-active is-failed is-enabled status show cat mask preset help list-dependencies edit revert add-wants add-requires ; do
Zbigniew Jędrzejewski-Szmek f4a676
   (( $+functions[_systemctl_$fun] )) || _systemctl_$fun()
Zbigniew Jędrzejewski-Szmek f4a676
   {
Zbigniew Jędrzejewski-Szmek f4a676
     _systemctl_really_all_units