diff --git a/.profile b/.profile index 415875f..078b3b7 100644 --- a/.profile +++ b/.profile @@ -22,6 +22,11 @@ if [ "$0" = "/usr/sbin/lightdm-session" -a "$DESKTOP_SESSION" = "i3" ]; then export $(gnome-keyring-daemon -s) fi +# Environnement Pyenv +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init --path)" + # Démarrage de l'environnement préféré if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then case $HOST in diff --git a/.zprofile b/.zprofile index 602fa41..4e8f538 100644 --- a/.zprofile +++ b/.zprofile @@ -1,5 +1,9 @@ emulate sh -c '. ~/.profile' +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init --path)" + # Start X automatically if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then exec startx diff --git a/.zshrc b/.zshrc index 983dc60..8e08b5a 100644 --- a/.zshrc +++ b/.zshrc @@ -68,7 +68,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git httpie ng npm nvm pass pip sudo wd) +plugins=(git httpie ng npm nvm pass pip sudo wd pyenv) source $ZSH/oh-my-zsh.sh