Pip is a package management system for installing and managing Python software packages. To enable auto completion for pip
in zsh, the documentation of pip suggests adding the following line to ~/.zshrc
:
eval "`pip completion --zsh`"
However, merely having this line would not enable auto completion for pip3
. To enable auto completion for pip3
as well, add the following line after the line above:
compctl -K _pip_completion pip3