mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
12 lines
225 B
Plaintext
12 lines
225 B
Plaintext
#compdef tla
|
|
|
|
local -a subcmds
|
|
|
|
subcmds=(${${${(M)${(f)"$(_call_program tla tla help)"}:#[ ]* : *}% : *}##[ ]##} )
|
|
|
|
if (( CURRENT == 2 )); then
|
|
_describe -t commands 'tla command' compadd - "$subcmds[@]"
|
|
else
|
|
_files
|
|
fi
|