1.9 KiB
Pipenv
This plugin provides some features to simplify the use of Pipenv while working on ZSH.
In your .zshrc file, add pipenv to the plugins section
plugins=(... pipenv ...)
Features
- Adds completion for pipenv (install the
argcompletepackage to get it working with pipenv >= 2026.5.0) - Auto activates and deactivates pipenv shell
- Adds short aliases for common pipenv commands
pchis aliased topipenv checkpclis aliased topipenv cleanpgris aliased topipenv graphpiis aliased topipenv installpidevis aliased topipenv install --devplis aliased topipenv lockpois aliased topipenv openprunis aliased topipenv runpshis aliased topipenv shellpsyis aliased topipenv syncpuis aliased topipenv uninstallpupdis aliased topipenv updatepwhis aliased topipenv --wherepvenvis aliased topipenv --venvppyis aliased topipenv --py
Cache
This plugin caches the Pipenv version to avoid running pipenv --version on every shell startup. The cache is automatically refreshed asynchronously when the plugin is loaded, which is usually when you start a new terminal session.
For legacy Pipenv versions, the generated completion script is also cached.
The cache is stored at:
-
$ZSH_CACHE_DIR/pipenv_versionversion of Pipenv, used to choose between argcomplete-based completion and legacy Click-based completion. -
$ZSH_CACHE_DIR/completions/_pipenvlegacy Click-based completion script.
Configuration
Shell activation
If you want to disable the shell activation and deactivation feature, add the following style to your .zshrc before sourcing oh-my-zsh.sh:
zstyle ':omz:plugins:pipenv' auto-shell no