zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: PATCH: _zsh: support --emulate option
Date: Wed, 29 Aug 2018 14:52:18 +0900	[thread overview]
Message-ID: <9685F6C8-2D6C-4317-899B-58897AD68324@kba.biglobe.ne.jp> (raw)


diff --git a/Completion/Unix/Command/_zsh b/Completion/Unix/Command/_zsh
index a5414670b..e6292a636 100644
--- a/Completion/Unix/Command/_zsh
+++ b/Completion/Unix/Command/_zsh
@@ -1,9 +1,12 @@
 #compdef zsh
 
-local curcontext=$curcontext state state_descr line expl
+local curcontext=$curcontext state state_descr line expl not='!'
 typeset -A opt_args
 
+[[ $CURRENT = 2 ]] && not=''
+
 _arguments -S -s : \
+  ${not}'--emulate[specify emulation mode]:mode:(zsh sh ksh csh)' \
   '*-o+[set named option]:option:_options' \
   '*+o+[unset named option]:option:_options' \
   '(1 -s --shinstdin)'{-s,--shinstdin}'[read commands from standard input]' \



                 reply	other threads:[~2018-08-29  6:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=9685F6C8-2D6C-4317-899B-58897AD68324@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --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).