Update pyenv - no more need for workarounds

This commit is contained in:
2024-03-23 12:58:34 +08:00
parent 0ba21d0238
commit 49b97d5697

View File

@@ -89,10 +89,6 @@ PYENV_ROOT="${PYENV_ROOT:-${HOME}/.pyenv}"
if [ -z "$PYENV_DISABLE" ] && [ -d "$PYENV_ROOT/bin" ]; then
export PATH="$HOME/.pyenv/bin:$PATH"
export PIPENV_VENV_IN_PROJECT=1
PYENV_MAJOR_VERSION="$(pyenv --version|cut -f 2 -d ' '|cut -f 1 -d .)"
if [ "$PYENV_MAJOR_VERSION" -gt 1 ]; then
eval "$(pyenv init --path)"
fi
eval "$(pyenv init -)"
fi