From 525f5987f49fd65197de5f5deddb8c3221a38de6 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 23 Sep 2019 14:39:11 +0200 Subject: zshenv: only setup pyenv ini if $HOME/.pyenv exists --- .zsh/zshenv/80_python | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.zsh/zshenv/80_python') 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 -- cgit v1.2.3-54-g00ecf