summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-11-12 16:20:20 +0100
committerTobias Klauser <tklauser@distanz.ch>2021-11-12 16:20:20 +0100
commitd7f36533d99bbdd94dd4462cc5906b38b2cda7bc (patch)
treefaaa4adc93756d59011226bec9d79179c8ac05ed
parent446a68c6a8f856cbdccfde563e8ffdddacf8fab6 (diff)
zshenv: add pyenv configuration
-rw-r--r--.zsh/zshenv/80_python7
1 files changed, 6 insertions, 1 deletions
diff --git a/.zsh/zshenv/80_python b/.zsh/zshenv/80_python
index 566309d..994a3ab 100644
--- a/.zsh/zshenv/80_python
+++ b/.zsh/zshenv/80_python
@@ -2,7 +2,7 @@
#
# Set variables related to Python
#
-# Copyright © 2014-2016 Tobias Klauser <tklauser@distanz.ch>
+# Copyright © 2014-2021 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git
@@ -12,4 +12,9 @@
export PYTHONSTARTUP=$HOME/.pythonrc
+# see https://opensource.com/article/19/5/python-3-default-mac
+if command -v pyenv 1>/dev/null 2>&1; then
+ eval "$(pyenv init -)"
+fi
+
# vim:ft=zsh