replace pythonz with pyenv

This commit is contained in:
Yax 2022-01-25 07:16:38 +01:00
parent 83361f9201
commit a3f5a15e4d

View file

@ -2,14 +2,12 @@
# PYTHON
# -------------------------------------------------------------
[[ -s $HOME/.pythonz/etc/bashrc ]] && source $HOME/.pythonz/etc/bashrc
if [ -f "$HOME/.pythonz/pythons/CPython-3.9.9/bin/python" ]; then
export PATH="$HOME/.pythonz/pythons/CPython-3.9.9/bin:$PATH"
fi
if [ -f "$HOME/.pythonz/pythons/CPython-3.9.9/bin/pew" ]; then
source "$(pew shell_config)"
# pyenv
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH" # if `pyenv` is not already on PATH
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
if [ -d "$HOME/.poetry/bin" ]; then