From 3d04640b95cb142c3ad0fac3c6e0347589ef9349 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 13 Mar 2019 16:09:55 +0100 Subject: zshenv/80_python: pyenv integration --- .zsh/zshenv/80_python | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to '.zsh/zshenv/80_python') diff --git a/.zsh/zshenv/80_python b/.zsh/zshenv/80_python index f430b78..5598fce 100644 --- a/.zsh/zshenv/80_python +++ b/.zsh/zshenv/80_python @@ -7,10 +7,19 @@ # # Source repository: git://git.distanz.ch/dotfiles/zsh.git -_PYTHON_USER=$HOME/.local/lib/python2.7/site-packages -_ZIPYTHON_LATEST=$HOME/tmp/ziPythonLatest/ +#_PYTHON_USER=$HOME/.local/lib/python2.7/site-packages +#[ -d $_PYTHON_USER ] && export PYTHONPATH=$_PYTHON_USER:$PYTHONPATH -[ -d $_PYTHON_USER ] && export PYTHONPATH=$_PYTHON_USER:$PYTHONPATH +_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 -)" + +export PYTHONSTARTUP=$HOME/.pythonrc + # vim:ft=zsh -- cgit v1.2.3-54-g00ecf