zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Hahler <genml+zsh-workers@thequod.de>
To: zsh-workers@zsh.org
Cc: Oliver Kiddle <okiddle@yahoo.co.uk>
Subject: [PATCH] _add-zsh-hook: add -L and improve descriptions
Date: Tue,  1 May 2018 10:56:30 +0200	[thread overview]
Message-ID: <20180501085630.11711-1-genml+zsh-workers@thequod.de> (raw)
In-Reply-To: <30998.1525160921@thecus>

From: Daniel Hahler <git@thequod.de>

---
 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


      reply	other threads:[~2018-05-01  8:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30 12:31 [PATCH] _add-zsh-hook: add -L Daniel Hahler
2018-05-01  7:48 ` Oliver Kiddle
2018-05-01  8:56   ` Daniel Hahler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180501085630.11711-1-genml+zsh-workers@thequod.de \
    --to=genml+zsh-workers@thequod.de \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).