The only method known to me is by hooking compadd and some black magic: https://github.com/Valodim/zsh-capture-completion If it can be done in a less hacky way, I'd be all ears. - V