diff --git a/plugins/poetry-env/poetry-env.plugin.zsh b/plugins/poetry-env/poetry-env.plugin.zsh index 86e5fad4e..903c4b4ef 100644 --- a/plugins/poetry-env/poetry-env.plugin.zsh +++ b/plugins/poetry-env/poetry-env.plugin.zsh @@ -17,7 +17,7 @@ _togglePoetryShell() { if grep -q 'tool.poetry' "$PWD/pyproject.toml"; then export poetry_active=1 export poetry_dir="$PWD" - source "$(poetry env info --path)/bin/activate" + poetry shell fi fi fi