Open kloetzl opened 6 years ago
Hi @kloetzl, thank you for awesome plugin. I'm new to zsh community, and I'm trying to work on diamond autocomplete script. Since many subcommands in diamond share same options (e.g. blastx, blastp), are there any clever way to share options between subcommands instead of duplicating them?
As long as all your subcommands are handled within the same completion script you could declare a global variable containing the shared options and add those to the individual options. The exact syntax may differ from case to case.
Here is an assorted list of tools for which completions might be of interest to some users.