We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fcc5935 + f4e6fbf commit 3fe52a2Copy full SHA for 3fe52a2
zsh-auto-venv.plugin.zsh
@@ -66,9 +66,8 @@ find_venv() {
66
while [[ "$dir" != "" ]]; do
67
# Look for 'bin/activate' in all subdirectories of the current directory
68
found_venvs=($(find "$dir" -maxdepth 3 -type f -name "activate" -path "*/bin/activate"))
69
- echo $found_venvs
70
if [[ "${#found_venvs[@]}" -gt 0 ]]; then
71
- echo "${found_venvs[0]%/*/*}" # Return the first found virtual environment path
+ echo $found_venvs # Return the first found virtual environment path
72
return
73
fi
74
dir=${dir%/*} # Move up to the parent directory
0 commit comments