summaryrefslogtreecommitdiff
path: root/plugins/poetry-env
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/poetry-env')
-rw-r--r--plugins/poetry-env/poetry-env.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/poetry-env/poetry-env.plugin.zsh b/plugins/poetry-env/poetry-env.plugin.zsh
index dca388dfe..d2d571dbe 100644
--- a/plugins/poetry-env/poetry-env.plugin.zsh
+++ b/plugins/poetry-env/poetry-env.plugin.zsh
@@ -1,7 +1,7 @@
_togglePoetryShell() {
# Determine if currently in a Poetry-managed directory
local in_poetry_dir=0
- if [[ -f "$PWD/pyproject.toml" ]] && grep -q 'tool.poetry' "$PWD/pyproject.toml"; then
+ if [[ -f "$PWD/pyproject.toml" && -f "$PWD/poetry.lock" ]]; then
in_poetry_dir=1
fi