zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _zsh: support --emulate option
@ 2018-08-29  5:52 Jun T
  0 siblings, 0 replies; only message in thread
From: Jun T @ 2018-08-29  5:52 UTC (permalink / raw)
  To: zsh-workers


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]' \



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-29  6:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-29  5:52 PATCH: _zsh: support --emulate option Jun T

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