summaryrefslogtreecommitdiff
path: root/.zsh/zshenv/80_python
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2019-03-13 16:09:55 +0100
committerTobias Klauser <tklauser@distanz.ch>2019-03-13 16:09:55 +0100
commit3d04640b95cb142c3ad0fac3c6e0347589ef9349 (patch)
tree3b2add5d498dd84b967adeeeba96465d0c44c34c /.zsh/zshenv/80_python
parentba1bc02796bafe4d53ff3ec35083b01907fceb1a (diff)
zshenv/80_python: pyenv integration
Diffstat (limited to '.zsh/zshenv/80_python')
-rw-r--r--.zsh/zshenv/80_python15
1 files changed, 12 insertions, 3 deletions
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