Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit c6a06ff

Browse files
author
Ivan Khomutov
committed
Fixed new and old venv comparsion
1 parent b5dc8f1 commit c6a06ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zsh-auto-venv.zsh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function _activate() {
22
local venv_dir="$1"
33

44
# Don't reactivate an already activated virtual environment
5-
if [[ -z "$VIRTUAL_ENV" || "$venv_dir" != "$$VIRTUAL_ENV)" ]]; then
5+
if [[ -z "$VIRTUAL_ENV" || "$venv_dir" != "$VIRTUAL_ENV" ]]; then
66
source "$venv_dir/bin/activate"
77
fi
88
}
@@ -37,7 +37,6 @@ function _check_venv()
3737

3838
if [[ -n "$venv_path" ]]; then
3939
_activate "$venv_path"
40-
return
4140
else
4241
_deactivate
4342
fi

0 commit comments

Comments
 (0)