How should I use argcomplete in zsh?

Alright there is a way to do it, but it's not the way I really wanted it to be.

Anyway, here goes:

  1. Install argcomplete:

    $ pip install argcomplete
    
  2. Activate argcompolete:

    $ activate-global-python-argcomplete --user
    
  3. Add this to ~/.zshrc:

    autoload bashcompinit
    bashcompinit
    source ~/.bash_completion.d/python-argcomplete.sh
    
    eval "$(register-python-argcomplete /path/to/the/to/be/completed/file1)"
    eval "$(register-python-argcomplete /path/to/the/to/be/completed/file2)"
    eval "$(register-python-argcomplete /path/to/the/to/be/completed/file3)"
    

    There's probably a solution to read out the to be completed files from another file, but I don't know how to do that.