From: Felipe Sateler Date: Wed, 7 Jun 2017 01:32:15 +0000 (-0400) Subject: zsh: add completion for add-wants and add-requires (#6082) X-Git-Tag: v234~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d739ce98f33fce467e1d5b447140eb53262244d3;p=thirdparty%2Fsystemd.git zsh: add completion for add-wants and add-requires (#6082) --- diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index 7d3d47bef98..aad700b739c 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -29,6 +29,8 @@ "list-unit-files:List installed unit files" "enable:Enable one or more unit files" "disable:Disable one or more unit files" + "add-wants:Add Wants= dependencies to a unit" + "add-requires:Add Requires= dependencies to a unit" "reenable:Reenable one or more unit files" "preset:Enable/disable one or more unit files based on preset configuration" "set-default:Set the default target" @@ -158,7 +160,7 @@ _systemctl_unit_state() { typeset -gA _sys_unit_state; _sys_unit_state=( $(__sys local fun # Completion functions for ALL_UNITS -for fun in is-active is-failed is-enabled status show cat mask preset help list-dependencies edit revert ; do +for fun in is-active is-failed is-enabled status show cat mask preset help list-dependencies edit revert add-wants add-requires ; do (( $+functions[_systemctl_$fun] )) || _systemctl_$fun() { _systemctl_really_all_units