PYENV: ajouté à ZSH
This commit is contained in:
parent
af4057e4ec
commit
b04dfb860a
5
.profile
5
.profile
@ -22,6 +22,11 @@ if [ "$0" = "/usr/sbin/lightdm-session" -a "$DESKTOP_SESSION" = "i3" ]; then
|
|||||||
export $(gnome-keyring-daemon -s)
|
export $(gnome-keyring-daemon -s)
|
||||||
fi
|
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é
|
# Démarrage de l'environnement préféré
|
||||||
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
case $HOST in
|
case $HOST in
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
emulate sh -c '. ~/.profile'
|
emulate sh -c '. ~/.profile'
|
||||||
|
|
||||||
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
eval "$(pyenv init --path)"
|
||||||
|
|
||||||
# Start X automatically
|
# Start X automatically
|
||||||
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||||
exec startx
|
exec startx
|
||||||
|
2
.zshrc
2
.zshrc
@ -68,7 +68,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
|||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# 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
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user