1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[pyenv] Pyenv initialization

This commit is contained in:
Hyacinthe Cartiaux 2020-05-13 19:30:57 +02:00
parent 5fc6e57ec7
commit 98c6075bc5
3 changed files with 13 additions and 1 deletions

View file

@ -179,5 +179,5 @@ fi
# -------------------------------------------------------------------
[[ -e "$HOME/.config/direnv/init.sh" ]] && . $HOME/.config/direnv/init.sh || true
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
[[ -e "$HOME/.config/pyenv/init.sh" ]] && . $HOME/.config/pyenv/init.sh || true

View file

@ -106,6 +106,8 @@ ln -sf $DOTFILES/gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf
ln -sf $DOTFILES/direnv/direnvrc ~/.config/direnv/direnvrc
ln -sf $DOTFILES/direnv/envrc ~/.config/direnv/envrc
ln -sf $DOTFILES/direnv/init.sh ~/.config/direnv/init.sh
mkdir -p ~/.config/pyenv/
ln -sf $DOTFILES/pyenv/init.sh ~/.config/pyenv/init.sh
## RVM configuration

10
pyenv/init.sh Normal file
View file

@ -0,0 +1,10 @@
# Initialization of the pyenv and pyenv-virtualenv
# - pyenv: https://github.com/pyenv/pyenv
# - pyenv-virtualenv: https://github.com/pyenv/pyenv-virtualenv
if [ -n "$(which pyenv 2>/dev/null)" ]; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
fi