I'm using argcomplete
to have Tab completion in Bash.
argcomplete
offers global completion for bash
, but doesn't for zsh
.
I would like to create a file ~/.zsh_completion
, to contain the to be completed files. This file should generate autocompletion for those files when it's sourced from ~/.zshrc
.
How do I do that?
Argcomplete author here. I just released argcomplete v3, which supports zsh natively, without the bashcompinit
compatibility layer, and with full official support for completion descriptions and global completion (which gets installed by activate-global-python-argcomplete
into /usr/local/share/zsh/site-functions
by default, but that behavior is configurable). Please give it a try.