From 12662f4120a2a8cb8efac561a4873c2f9d798d15 Mon Sep 17 00:00:00 2001 From: Hyacinthe Cartiaux Date: Thu, 11 Nov 2021 11:59:09 +0100 Subject: [PATCH] [direnv,pyenv] Fix --- direnv/direnvrc | 1 + pyenv/init.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/direnv/direnvrc b/direnv/direnvrc index 8978fb7..d2a246b 100644 --- a/direnv/direnvrc +++ b/direnv/direnvrc @@ -46,6 +46,7 @@ use_python() { if has pyenv; then local pyversion=$1 + eval "$(pyenv init --path)" eval "$(pyenv init -)" pyenv local ${pyversion} || log_error "Could not find pyenv version '${pyversion}'. Consider running 'pyenv install ${pyversion}'" fi diff --git a/pyenv/init.sh b/pyenv/init.sh index 54e3b41..e411c4c 100644 --- a/pyenv/init.sh +++ b/pyenv/init.sh @@ -3,6 +3,7 @@ # - pyenv-virtualenv: https://github.com/pyenv/pyenv-virtualenv if [ -n "$(which pyenv 2>/dev/null)" ]; then + eval "$(pyenv init --path)" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"