1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-11 04:41:32 +02:00
zsh/Completion/Unix/Command/_cabal
2015-04-10 19:31:33 -04:00

9 lines
292 B
Text

#compdef cabal
local -a subcmds
subcmds=(${${${${${(f)"$(cabal --help)"}[(r)Commands:*,(r)For more information*]}[2,-2]}# }%% *})
_arguments \
'1:subcmd:compadd -a subcmds' \
':other: _alternative "options:option:compadd -- $(cabal $words[2] --list-options)" "files:file:_files"'