From d7f36533d99bbdd94dd4462cc5906b38b2cda7bc Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 12 Nov 2021 16:20:20 +0100 Subject: zshenv: add pyenv configuration --- .zsh/zshenv/80_python | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 +# Copyright © 2014-2021 Tobias Klauser # 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 -- cgit v1.2.3-54-g00ecf