Created
December 30, 2018 13:59
-
-
Save medeirosthiago/5bb2690ff99a08e34fba675cd9005f8f to your computer and use it in GitHub Desktop.
Solve pyenv conflict problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -n "$PYENV_COMMAND" ] && [ ! -x "$PYENV_COMMAND_PATH" ]; then | |
versions=($(pyenv-whence "${PYENV_COMMAND}" 2>/dev/null || true)) | |
if [ -n "${versions}" ]; then | |
if [ "${#versions[@]}" -gt 1 ]; then | |
echo "pyenv-implicit: found multiple ${PYENV_COMMAND} in pyenv. Use version ${versions[0]}." 1>&2 | |
fi | |
PYENV_COMMAND_PATH="${PYENV_ROOT}/versions/${versions[0]}/bin/${PYENV_COMMAND}" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment