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"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
command -v pyenv && {
export PYENV_ROOT="$HOME/.pyenv"
echo $PATH | grep -i pyenv > /dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
}
if [[ -e $HOME/.ssh/id_ed25519 ]]
then