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