diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_cabal | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_cabal b/Completion/Unix/Command/_cabal new file mode 100644 index 000000000..bd81cf261 --- /dev/null +++ b/Completion/Unix/Command/_cabal @@ -0,0 +1,9 @@ +#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"' |