Skip to content

Commit 3fe52a2

Browse files
authored
Merge pull request #7 from SangwoonYun/fix/find-venv
fix: Fix the bug in find venv
2 parents fcc5935 + f4e6fbf commit 3fe52a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zsh-auto-venv.plugin.zsh

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ find_venv() {
6666
while [[ "$dir" != "" ]]; do
6767
# Look for 'bin/activate' in all subdirectories of the current directory
6868
found_venvs=($(find "$dir" -maxdepth 3 -type f -name "activate" -path "*/bin/activate"))
69-
echo $found_venvs
7069
if [[ "${#found_venvs[@]}" -gt 0 ]]; then
71-
echo "${found_venvs[0]%/*/*}" # Return the first found virtual environment path
70+
echo $found_venvs # Return the first found virtual environment path
7271
return
7372
fi
7473
dir=${dir%/*} # Move up to the parent directory

0 commit comments

Comments
 (0)