shells: update pyenv initial process

pyenv doesn't set path with `init -` anymore.
Also set PATH only once in login shell.
This commit is contained in:
FollieHiyuki 2021-06-16 15:05:11 +03:00
parent 6adbf27693
commit 657c371abe
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
8 changed files with 25 additions and 18 deletions

View File

@ -2,6 +2,9 @@
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
# PATH
export PATH=$HOME/.local/bin:$HOME/.local/bin/fzf:$NODENV_ROOT/bin:$PYENV_ROOT/bin:$POETRY_HOME/bin:$CARGO_HOME/bin:$GOPATH/bin:$NPM_CONFIG_PREFIX/bin:$PATH
# if [[ "$(tty)" = "/dev/tty1" ]]; then
# exec startx $HOME/.config/X11/xinitrc
# fi

View File

@ -366,9 +366,6 @@ then
"
fi
# PATH
export PATH=$HOME/.local/bin:$HOME/.local/bin/fzf:$NODENV_ROOT/bin:$PYENV_ROOT/bin:$POETRY_HOME/bin:$CARGO_HOME/bin:$GOPATH/bin:$NPM_CONFIG_PREFIX/bin:$PATH
# _________________
# ___ |__ /__(_)_____ ________
# __ /| |_ /__ /_ __ `/_ ___/
@ -593,7 +590,10 @@ fi
# git clone https://github.com/pyenv/pyenv-virtualenv.git $PYENV_ROOT/plugins/pyenv-virtualenv
# git clone https://github.com/pyenv/pyenv-update.git $PYENV_ROOT/plugins/pyenv-update
# fi
# eval "$(pyenv init -)" >/dev/null
# if shopt -q login_shell; then
# eval "$(pyenv init --path)"
# fi
# eval "$(pyenv init -)"
# eval "$(pyenv virtualenv-init -)"
# nodenv

View File

@ -33,7 +33,8 @@ end
# git clone https://github.com/pyenv/pyenv-update.git $PYENV_ROOT/plugins/pyenv-update
# git clone https://github.com/pyenv/pyenv-virtualenv.git $PYENV_ROOT/plugins/pyenv-virtualenv
# end
# pyenv init - | source >/dev/null
# status is-login; and pyenv init --path | source
# pyenv init - | source
# pyenv virtualenv-init - | source
# nodenv

View File

@ -41,13 +41,13 @@ riverctl background-color #2e3440
# Inputs ───────────────────────────────────────────────────────────────────────
riverctl input 2:7:SynPS/2_Synaptics_TouchPad events disabled-on-external-mouse
riverctl input 2:7:SynPS/2_Synaptics_TouchPad drag enabled
riverctl input 2:7:SynPS/2_Synaptics_TouchPad disable-while-typing enabled
riverctl input 2:7:SynPS/2_Synaptics_TouchPad natural-scroll enabled
riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap enabled
riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap-button-map left-right-middle
riverctl input 2:7:SynPS/2_Synaptics_TouchPad scroll-method two-finger
# riverctl input 2:7:SynPS/2_Synaptics_TouchPad events disabled-on-external-mouse
# riverctl input 2:7:SynPS/2_Synaptics_TouchPad drag enabled
# riverctl input 2:7:SynPS/2_Synaptics_TouchPad disable-while-typing enabled
# riverctl input 2:7:SynPS/2_Synaptics_TouchPad natural-scroll enabled
# riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap enabled
# riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap-button-map left-right-middle
# riverctl input 2:7:SynPS/2_Synaptics_TouchPad scroll-method two-finger
# Bindings ─────────────────────────────────────────────────────────────────────

View File

@ -1,3 +1,8 @@
# PATH
typeset -U PATH path
path=("$HOME/.local/bin" "$HOME/.local/bin/fzf" "$NODENV_ROOT/bin" "$PYENV_ROOT/bin" "$POETRY_HOME/bin" "$CARGO_HOME/bin" "$GOPATH/bin" "$NPM_CONFIG_PREFIX/bin" "$path[@]")
export PATH
# if [[ "$(tty)" = "/dev/tty1" ]]; then
# exec startx $HOME/.config/X11/xinitrc
# fi

View File

@ -401,8 +401,3 @@ if [ -n "$XDG_SESSION_TYPE" ]; then
fi
fi
fi
# PATH
typeset -U PATH path
path=("$HOME/.local/bin" "$HOME/.local/bin/fzf" "$NODENV_ROOT/bin" "$PYENV_ROOT/bin" "$POETRY_HOME/bin" "$CARGO_HOME/bin" "$GOPATH/bin" "$NPM_CONFIG_PREFIX/bin" "$path[@]")
export PATH

View File

@ -61,7 +61,10 @@ fi
# git clone https://github.com/pyenv/pyenv-virtualenv.git $PYENV_ROOT/plugins/pyenv-virtualenv
# git clone https://github.com/pyenv/pyenv-update.git $PYENV_ROOT/plugins/pyenv-update
# fi
# eval "$(pyenv init -)" >/dev/null
# if [[ -o login ]]; then
# eval "$(pyenv init --path)"
# fi
# eval "$(pyenv init -)"
# eval "$(pyenv virtualenv-init -)"
# nodenv