Back to Ohmyzsh

pip plugin

plugins/pip/README.md

latest2.5 KB
Original Source

pip plugin

This plugin adds completion for pip, the Python package manager.

To use it, add pip to the plugins array in your zshrc file:

zsh
plugins=(... pip)

pip cache

The pip plugin caches the names of available pip packages from the PyPI index. To trigger the caching process, try to complete pip install, or you can run zsh-pip-cache-packages directly.

To reset the cache, run zsh-pip-clear-cache and it will be rebuilt next the next time you autocomplete pip install.

Aliases

AliasCommandDescription
pipipip installInstall packages
pipigpip install "git+https://github.com/user/repo.git"Install package from GitHub repository
pipigbpip install "git+https://github.com/user/repo.git@branch"Install package from GitHub branch
pipigppip install "git+https://github.com/user/repo.git@refs/pull/PR_NUMBER/head"Install package from GitHub pull request
pipupip install --upgradeUpgrade packages
pipunpip uninstallUninstall packages
pipgipip freeze | grepGrep through installed packages
piplopip list --outdatedList outdated packages
pipreqpip freeze > requirements.txtCreate requirements file
pipirpip install -r requirements.txtInstall packages from requirements.txt file
pipupallpip list --outdated | awk 'NR > 2 { print $1 }' | xargs pip install --upgradeUpdate all installed packages
pipunallpip list --format freeze | cut -d= -f1 | xargs pip uninstallUninstall all installed packages