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

52112: use '_normal -p subcmd' to complete only external command

This commit is contained in:
Jun-ichi Takimoto 2023-09-04 15:07:52 +09:00
parent 9ff1b2810e
commit c0caef5613
15 changed files with 28 additions and 16 deletions

View file

@ -27,6 +27,6 @@ for ((i=1;i<=3;i++)); do
"(${short[i]})${long[i]}=${(e)opt}"
)
done
(( CURRENT > 2 )) && args+=( '*::command:_normal' )
(( CURRENT > 2 )) && args+=( '*::command: _normal -p $service' )
_arguments -s -S $args