feat(pipenv): add option to disable auto shell feature

Closes #11472
This commit is contained in:
Carlo Sala 2023-09-06 19:01:41 +02:00
commit 079dbff2c4
No known key found for this signature in database
GPG key ID: DA6FB450C1A4FE9A
2 changed files with 34 additions and 19 deletions

View file

@ -1,6 +1,7 @@
# Pipenv
## Installation
In your `.zshrc` file, add `pipenv` to the plugins section
```
@ -8,7 +9,9 @@ plugins=(... pipenv ...)
```
## Features
This plugin provides some features to simplify the use of Pipenv while working on ZSH.
This plugin provides some features to simplify the use of Pipenv while working on ZSH.
- Adds completion for pipenv
- Auto activates and deactivates pipenv shell
- Adds short aliases for common pipenv commands
@ -27,3 +30,13 @@ This plugin provides some features to simplify the use of Pipenv while working o
- `pwh` is aliased to `pipenv --where`
- `pvenv` is aliased to `pipenv --venv`
- `ppy` is aliased to `pipenv --py`
## 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`:
```zsh
zstyle ':omz:plugins:pipenv' auto-shell no
```