Check for pyenv before initialising
This commit is contained in:
parent
44346ef468
commit
1920de4a66
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue