command line arguments - How should I use argcomplete in zsh? -
i'm using argcomplete
have tab completion in bash.
argcomplete
offers global completion bash
, doesn't zsh
.
i create file ~/.zsh_completion
, contain completed files. file should generate autocompletion files when it's sourced ~/.zshrc
.
how do that?
alright there way it, it's not way wanted be.
anyway, here goes:
install
argcomplete
:$ pip install argcomplete
activate
argcompolete
:$ activate-global-python-argcomplete --user
add
~/.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 solution read out completed files file, don't know how that.
Comments
Post a Comment