Enable Auto Completion for pip in Zsh


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



Source link

READ ALSO  My Top 5 Tools for Social Studies Teachers and Students (Non-Google Edition)
?
WP Twitter Auto Publish Powered By : XYZScripts.com