a43cef34043dae63d73cd40b7e887a43e7b93680

Author
Oleg Smelov <OlegSmelov@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

pyenv: detect pyenv from Homebrew faster (#7670)

Diff

 1diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh
 2index dbc7da4728217de40a1aea2de13c24a9b0f43259..4e92b80176052f5d57debb35e2dd06ee9f232c97 100644
 3--- a/plugins/pyenv/pyenv.plugin.zsh
 4+++ b/plugins/pyenv/pyenv.plugin.zsh
 5@@ -4,7 +4,7 @@
 6 FOUND_PYENV=$+commands[pyenv]
 7 
 8 if [[ $FOUND_PYENV -ne 1 ]]; then
 9-    pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv")
10+    pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv" "/usr/local/opt/pyenv")
11     for dir in $pyenvdirs; do
12         if [[ -d $dir/bin ]]; then
13             export PATH="$PATH:$dir/bin"