|
|
@ -4216,11 +4216,15 @@ function _p9k_pyenv_compute() {
|
|
|
|
|
|
|
|
|
|
|
|
local versions=${PYENV_ROOT:-$HOME/.pyenv}/versions
|
|
|
|
local versions=${PYENV_ROOT:-$HOME/.pyenv}/versions
|
|
|
|
versions=${versions:A}
|
|
|
|
versions=${versions:A}
|
|
|
|
local version=$versions/$v
|
|
|
|
local name version
|
|
|
|
version=${version:A}
|
|
|
|
for name in ${(s.:.)v}; do
|
|
|
|
if [[ $version == (#b)$versions/([^/]##)* ]]; then
|
|
|
|
version=$versions/$name
|
|
|
|
typeset -g P9K_PYENV_PYTHON_VERSION=$match[1]
|
|
|
|
version=${version:A}
|
|
|
|
fi
|
|
|
|
if [[ $version(#qN/) == (#b)$versions/([^/]##)* ]]; then
|
|
|
|
|
|
|
|
typeset -g P9K_PYENV_PYTHON_VERSION=$match[1]
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
typeset -g _p9k__pyenv_version=$v
|
|
|
|
typeset -g _p9k__pyenv_version=$v
|
|
|
|
}
|
|
|
|
}
|
|
|
|