pyenv: detect pyenv from Homebrew faster (#7670)

This commit is contained in:
Oleg Smelov 2019-03-29 23:17:19 +02:00 committed by Marc Cornellà
parent 15f29aacc2
commit a43cef3404

View File

@ -4,7 +4,7 @@
FOUND_PYENV=$+commands[pyenv]
if [[ $FOUND_PYENV -ne 1 ]]; then
pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv")
pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv" "/usr/local/opt/pyenv")
for dir in $pyenvdirs; do
if [[ -d $dir/bin ]]; then
export PATH="$PATH:$dir/bin"