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:

  1. install argcomplete:

    $ pip install argcomplete 
  2. activate argcompolete:

    $ activate-global-python-argcomplete --user 
  3. 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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -