diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2024-04-23 16:21:21 +0200 |
|---|---|---|
| committer | Carlo Sala <carlosalag@protonmail.com> | 2024-04-23 16:21:21 +0200 |
| commit | 5d2d35cd1741af19553007fe0cc5324744fc58fa (patch) | |
| tree | 7e100c938fda5eccdf57e3cd797c851f5f2b8cbe /plugins/poetry-env | |
| parent | ee69c14beb24c652707b2f6b2a9db0fa8b238d05 (diff) | |
| download | zsh-5d2d35cd1741af19553007fe0cc5324744fc58fa.tar.gz zsh-5d2d35cd1741af19553007fe0cc5324744fc58fa.tar.bz2 zsh-5d2d35cd1741af19553007fe0cc5324744fc58fa.zip | |
fix(poetry-env): do not deactivate in a subdir
Closes #12377
Diffstat (limited to 'plugins/poetry-env')
| -rw-r--r-- | plugins/poetry-env/poetry-env.plugin.zsh | 2 |
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 f98c177b4..be46717d8 100644 --- a/plugins/poetry-env/poetry-env.plugin.zsh +++ b/plugins/poetry-env/poetry-env.plugin.zsh @@ -6,7 +6,7 @@ _togglePoetryShell() { fi # Deactivate the current environment if moving out of a Poetry directory or into a different Poetry directory - if [[ $poetry_active -eq 1 ]] && { [[ $in_poetry_dir -eq 0 ]] || [[ "$PWD" != "$poetry_dir"* ]]; }; then + if [[ $poetry_active -eq 1 ]] && { [[ $in_poetry_dir -eq 0 ]] && [[ "$PWD" != "$poetry_dir"* ]]; }; then export poetry_active=0 unset poetry_dir deactivate |
