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?
man zshcompsys
or Completion System online doc. Zsh has a much more sophisticated completion system, and that's one reason why Zsh is loved by millions. It's usually advised to start with some configuration framework likePrezto
, so that you get collective wisdom out of the box. And I don't know what you mean by "I would like to create a file ... to contain the to be completed files." Zsh completion is command based, and it can complete to different things for different commands. – Homologizeargcomplete
lib is about. – Disfeature