mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-16 14:41:02 +02:00
41616: update completion options to entr 3.8
This commit is contained in:
parent
92ec72844c
commit
e5c11eb7b5
2 changed files with 18 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
2017-08-29 Oliver Kiddle <opk@zsh.org>
|
2017-08-29 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* 41616: Completion/Unix/Command/_entr: update options to 3.8
|
||||||
|
|
||||||
* unposted: Completion/Unix/Type/_bpf_filters:
|
* unposted: Completion/Unix/Type/_bpf_filters:
|
||||||
add missing #autoload directive
|
add missing #autoload directive
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,23 @@
|
||||||
#compdef entr
|
#compdef entr
|
||||||
|
|
||||||
|
local curcontext="$curcontext" state state_descr line ret=1
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
_arguments -s -S \
|
_arguments -s -S \
|
||||||
'-c[execute clear before invoking utility]' \
|
'-c[execute clear before invoking utility]' \
|
||||||
'-d[track directories and exit if a new file is added]' \
|
'-d[track directories and exit if a new file is added]' \
|
||||||
'-p[postpone first execution of the utility]' \
|
'-p[postpone first execution of the utility]' \
|
||||||
'-r[reload a persistent child process]' \
|
'-r[reload a persistent child process]' \
|
||||||
'(-):command name:_command_names -e' \
|
'(*)-s[evaluate the first argument using interpreter specified by $SHELL]' \
|
||||||
'*::arguments:_normal'
|
'(-): :->command' \
|
||||||
|
'*::arguments:_normal' && ret=0
|
||||||
|
|
||||||
|
if [[ -n $state ]]; then
|
||||||
|
if (( $+opt_args[-s] )); then
|
||||||
|
_cmdstring && ret=0
|
||||||
|
else
|
||||||
|
_command_names -e && ret=0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue