https://github.com/darvid/zsh-poetry
đ Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. đ
https://github.com/darvid/zsh-poetry
python python-package-management virtualenv zsh zsh-plugin zsh-plugins
Last synced: 7 months ago
JSON representation
đ Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. đ
- Host: GitHub
- URL: https://github.com/darvid/zsh-poetry
- Owner: darvid
- License: mit
- Created: 2019-04-22T02:49:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T16:24:06.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T14:11:23.650Z (8 months ago)
- Topics: python, python-package-management, virtualenv, zsh, zsh-plugin, zsh-plugins
- Language: Shell
- Size: 9.77 KB
- Stars: 76
- Watchers: 4
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - poetry (darvid) - Automatically activates and deactivates [Poetry](https://poetry.eustace.io/)-created python virtualenvs. (Plugins / ZSH on Windows)
- awesome-starred - darvid/zsh-poetry - đ Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. đ (python)
- fucking-awesome-zsh-plugins - poetry (darvid) - Automatically activates and deactivates đ [Poetry](poetry.eustace.io/)-created python virtualenvs. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - poetry - Automatically activates and deactivates [Poetry](https://poetry.eustace.io/)-created python virtualenvs. (Plugins / Zinit (nÊe zplugin))
README
[](./LICENSE)

# zsh-poetry
Automatically activates virtual environments created by [Poetry] when
changing to a project directory with a valid ``pyproject.toml``.
[Poetry]: https://poetry.eustace.io/
[pyenv]: https://github.com/pyenv/pyenv
## Install
```
curl -L git.io/Jinm5 > poetry.zsh
source poetry.zsh
```
### Antigen
```
antigen bundle darvid/zsh-poetry
```
### zplug
```
zplug "darvid/zsh-poetry"
```
## Configuration
**Options:**
* `ZSH_POETRY_AUTO_ACTIVATE` (default: `1`): if set, automatically
activates virtual environments in valid project directories when
changing directories.
* `ZSH_POETRY_AUTO_DEACTIVATE` (default: `1`): if set, automatically
deactivates virtual environments when moving out of project directories.