ohmyzsh/plugins/poetry-env
Jacob Rogers 3a6f538109 fix(poetry-env): fix env detection for pyproject without [tool.poetry]
Since version 2.0.0, poetry stopped requiring '[tool.poetry]' section in pyproject.toml and new environments are created without it, but the zsh plugin still required it.

With this change, the plugin will check for `pyproject.toml` and `poetry.lock` files to reliably check if it's a poetry project. Tested with both poetry versions 1.8.5, 2.0.1 and 2.1.2.
2025-08-12 15:54:28 +12:00
..
poetry-env.plugin.zsh fix(poetry-env): fix env detection for pyproject without [tool.poetry] 2025-08-12 15:54:28 +12:00
README.md style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00

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)