From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10565 invoked by alias); 1 May 2018 08:57:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42741 Received: (qmail 24661 invoked by uid 1010); 1 May 2018 08:57:00 -0000 X-Qmail-Scanner-Diagnostics: from hahler.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(188.40.33.212):SA:0(-1.6/5.0):. Processed in 1.30823 secs); 01 May 2018 08:57:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: daniel@hahler.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received; s=postfix2; t= 1525165013; bh=Z0nQ6uPA38aNB18FByo8gQ1GLH5RkxnDflMPvo4WyDQ=; b=V ZUhF/5tsPTyu0/3WM4a3KEfgK2qDXAFIqGVqwFQP96K0kwVNjZQqErYoyfuEXT7D V/UEtXFuI3Zz02wyr9YyXSDSr1dadP+My7SVW+SfhjSjKlrHqYLvwKPNY2+w4Tov vDZDvepas9MAQ9A7nn3gj1/rEtijwpLeRG+5630ysg= From: Daniel Hahler To: zsh-workers@zsh.org Cc: Oliver Kiddle Subject: [PATCH] _add-zsh-hook: add -L and improve descriptions Date: Tue, 1 May 2018 10:56:30 +0200 Message-Id: <20180501085630.11711-1-genml+zsh-workers@thequod.de> X-Mailer: git-send-email 2.17.0 In-Reply-To: <30998.1525160921@thecus> References: <30998.1525160921@thecus> From: Daniel Hahler --- Completion/Zsh/Function/_add-zsh-hook | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Completion/Zsh/Function/_add-zsh-hook b/Completion/Zsh/Function/_add-zsh-hook index e8ae97052..f570aca92 100644 --- a/Completion/Zsh/Function/_add-zsh-hook +++ b/Completion/Zsh/Function/_add-zsh-hook @@ -14,8 +14,9 @@ _add-zsh-hook() { local context state state_descr line typeset -A opt_args _arguments -s -w -S : \ - '(-D)-d[remove HOOK from the array]' \ - '(-d)-D[interpret HOOK as pattern to remove from the array]' \ + '(-D -L)-d[remove hook from the array]' \ + '(-d -L)-D[interpret hook as pattern to remove from the array]' \ + '(-d -D)-L[list current values of the array with typeset]' \ {-U,-z,-k}"[passed to 'autoload']" \ ':hook class:(chpwd precmd preexec periodic zshaddhistory zshexit zsh_directory_name)' \ ':hook function:_add-zsh-hook_hooks' -- 2.17.0