Check for pyenv before initialising

This commit is contained in:
Evie Litherland-Smith 2023-02-11 10:05:00 +00:00
parent 44346ef468
commit 1920de4a66

View file

@ -1,6 +1,8 @@
export PYENV_ROOT="$HOME/.pyenv" command -v pyenv && {
export PATH="$PYENV_ROOT/bin:$PATH" export PYENV_ROOT="$HOME/.pyenv"
eval "$(pyenv init --path)" echo $PATH | grep -i pyenv > /dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
}
if [[ -e $HOME/.ssh/id_ed25519 ]] if [[ -e $HOME/.ssh/id_ed25519 ]]
then then