kloetzl / biozsh

the z in bioinformatics
MIT License
33 stars 5 forks source link

Whishlist #8

Open kloetzl opened 6 years ago

kloetzl commented 6 years ago

Here is an assorted list of tools for which completions might be of interest to some users.

cgjosephlee commented 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?

kloetzl commented 6 years ago

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.