1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2025-10-17 19:41:01 +00:00

Cleaner pyenv setup in case it is in a non-standard location or missing altogether

This commit is contained in:
Holger Just 2022-07-26 11:23:23 +02:00
parent be1e716cd8
commit 318328ffa8

View File

@ -157,9 +157,11 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# pyenv
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
export PYENV_ROOT="$HOME/.pyenv"
if ! command -v pyenv 1>/dev/null 2>&1 && [[ -d "$PYENV_ROOT/bin" ]]; then
export PATH="$PYENV_ROOT/bin:$PATH"
fi
command -v pyenv 1>/dev/null 2>&1 && eval "$(pyenv init -)"
# Appliction config
export PLANIO_SKIP_AMA=1