We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3fe52a2 + 7c1d518 commit e6cb3c7Copy full SHA for e6cb3c7
zsh-auto-venv.plugin.zsh
@@ -65,7 +65,7 @@ find_venv() {
65
# Search for 'bin/activate' in current and all parent directories
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"))
+ found_venvs=($(find "$dir" -maxdepth 3 -type f -name "activate" -path "*/bin/activate" 2>/dev/null))
69
if [[ "${#found_venvs[@]}" -gt 0 ]]; then
70
echo $found_venvs # Return the first found virtual environment path
71
return
0 commit comments