Adding "/usr/local/opt/pyenv" to list of search directories. Brew uses

that folder and without it `brew --prefix pyenv` is used, which is much
slower.
This commit is contained in:
Eric Faden 2018-01-30 10:34:26 -05:00
parent 37c2d0ddd7
commit e9d25bb997

View File

@ -7,7 +7,7 @@ _pyenv-from-homebrew-installed() {
} }
FOUND_PYENV=0 FOUND_PYENV=0
pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv") pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv" "/usr/local/opt/pyenv")
for pyenvdir in "${pyenvdirs[@]}" ; do for pyenvdir in "${pyenvdirs[@]}" ; do
if [ -d $pyenvdir/bin -a $FOUND_PYENV -eq 0 ] ; then if [ -d $pyenvdir/bin -a $FOUND_PYENV -eq 0 ] ; then