1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00

43350: _zsh: support --emulate

This commit is contained in:
Jun-ichi Takimoto 2018-08-30 00:58:29 +09:00
parent 5ff259d413
commit 7d905fd4fe
2 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,8 @@
* 43349: Completion/X/Command/_eog: new completion for eog
* 43350: Completion/Unix/Command/_zsh: support --emulate
2018-08-29 Oliver Kiddle <okiddle@yahoo.co.uk>
* 43346: Completion/Linux/Command/_cryptsetup,

View file

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