From b04dfb860a34a004d967e53107cfdfadb731e5c2 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Thu, 17 Oct 2024 11:41:57 +0200 Subject: [PATCH] =?UTF-8?q?PYENV:=20ajout=C3=A9=20=C3=A0=20ZSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .profile | 5 +++++ .zprofile | 4 ++++ .zshrc | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) 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