summaryrefslogtreecommitdiff
path: root/.zsh/zshenv/80_python
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2019-09-23 14:39:11 +0200
committerTobias Klauser <tklauser@distanz.ch>2019-09-23 14:39:11 +0200
commit525f5987f49fd65197de5f5deddb8c3221a38de6 (patch)
treeb4e72952af0799e4157f65684bf8ab3108cd638d /.zsh/zshenv/80_python
parent54c1bddb5cd24ec20ea291f2da7f05fadba2030e (diff)
zshenv: only setup pyenv ini if $HOME/.pyenv exists
Diffstat (limited to '.zsh/zshenv/80_python')
-rw-r--r--.zsh/zshenv/80_python10
1 files changed, 5 insertions, 5 deletions
diff --git a/.zsh/zshenv/80_python b/.zsh/zshenv/80_python
index 5598fce..251155c 100644
--- a/.zsh/zshenv/80_python
+++ b/.zsh/zshenv/80_python
@@ -14,11 +14,11 @@ _ZIPYTHON_LATEST=$HOME/tmp/ziPythonLatest/
[ -d $_ZIPYTHON_LATEST ] && export PYTHONPATH=$PYTHONPATH:$_ZIPYTHON_LATEST
_PYENV_ROOT="$HOME/.pyenv"
-[ -d $_PYENV_ROOT ] && export PYENV_ROOT=$_PYENV_ROOT
-
-path_prepend $PYENV_ROOT/bin
-
-eval "$(pyenv init -)"
+if [ -d $_PYENV_ROOT ] ; then
+ export PYENV_ROOT=$_PYENV_ROOT
+ path_prepend $PYENV_ROOT/bin
+ eval "$(pyenv init -)"
+fi
export PYTHONSTARTUP=$HOME/.pythonrc