mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Since version 2.0.0 poetry stopped using '[project.tool]' section in `pyproject.toml`. So the plugin didn't work for the newer poetry version. With this change, the plugin will check for `pyproject.toml` and `poetry.lock` files to reliably check if it's a poetry project. In my testing, it worked with both poetry versions 1.8.5 and 2.0.1. |
||
|---|---|---|
| .. | ||
| poetry-env.plugin.zsh | ||
| README.md | ||
Poetry Environment Plugin
This plugin automatically changes poetry environment when you cd into or out of the project directory. Note: Script looks for pyproject.toml file to determine poetry if its a poetry environment
To use it, add poetry-env to the plugins array in your zshrc file:
plugins=(... poetry-env)