From a3f5a15e4d7e9f71c56d78faddf363c7275a0320 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Tue, 25 Jan 2022 07:16:38 +0100 Subject: [PATCH] replace pythonz with pyenv --- dot_bashrc.d/python.bashrc.tmpl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dot_bashrc.d/python.bashrc.tmpl b/dot_bashrc.d/python.bashrc.tmpl index 91e23fa..b238240 100644 --- a/dot_bashrc.d/python.bashrc.tmpl +++ b/dot_bashrc.d/python.bashrc.tmpl @@ -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