mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 09:15:24 +02:00
[direnv,pyenv] Fix
This commit is contained in:
parent
19468dc3db
commit
12662f4120
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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 -)"
|
||||
|
||||
|
|
Loading…
Reference in a new issue