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:
parent
5fc6e57ec7
commit
98c6075bc5
3 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
10
pyenv/init.sh
Normal 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
|
Loading…
Reference in a new issue