Update plugins/poetry-env/poetry-env.plugin.zsh

This commit is contained in:
Carlo Sala 2024-11-14 08:59:58 +01:00 committed by GitHub
commit 6169792609
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ _togglePoetryShell() {
if [[ $poetry_active -eq 1 ]] && { [[ $in_poetry_dir -eq 0 ]] || [[ "$PWD" != "$poetry_dir"* ]]; }; then
export poetry_active=0
unset poetry_dir
deactivate
(( $+functions[deactivate] )) && deactivate
fi
# Activate the environment if in a Poetry directory and no environment is currently active