mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 22:32:12 +02:00
43350: _zsh: support --emulate
This commit is contained in:
parent
5ff259d413
commit
7d905fd4fe
2 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
* 43349: Completion/X/Command/_eog: new completion for eog
|
* 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>
|
2018-08-29 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||||
|
|
||||||
* 43346: Completion/Linux/Command/_cryptsetup,
|
* 43346: Completion/Linux/Command/_cryptsetup,
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
#compdef zsh
|
#compdef zsh
|
||||||
|
|
||||||
local curcontext=$curcontext state state_descr line expl
|
local curcontext=$curcontext state state_descr line expl not='!'
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
|
[[ $CURRENT = 2 ]] && not=''
|
||||||
|
|
||||||
_arguments -S -s : \
|
_arguments -S -s : \
|
||||||
|
${not}'--emulate[specify emulation mode]:mode:(zsh sh ksh csh)' \
|
||||||
'*-o+[set named option]:option:_options' \
|
'*-o+[set named option]:option:_options' \
|
||||||
'*+o+[unset named option]:option:_options' \
|
'*+o+[unset named option]:option:_options' \
|
||||||
'(1 -s --shinstdin)'{-s,--shinstdin}'[read commands from standard input]' \
|
'(1 -s --shinstdin)'{-s,--shinstdin}'[read commands from standard input]' \
|
||||||
|
|
Loading…
Reference in a new issue