From 88c84ae6f9d0b87c0b8c372f1d14853a02e1ea73 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 4 May 2017 07:14:30 -0400 Subject: [PATCH] dev/+pyenv: set PATH instead of load env.zsh --- dev/+pyenv/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/+pyenv/install b/dev/+pyenv/install index 5fc2b6e1..f715a2c2 100755 --- a/dev/+pyenv/install +++ b/dev/+pyenv/install @@ -4,7 +4,7 @@ if [[ ! -d "$HOME/.pyenv" || $FORCE ]]; then git clone https://github.com/yyuu/pyenv.git $HOME/.pyenv # Install the latest v2 and v3 versions of python - source "$(cd $(dirname $0) && pwd)"/env.zsh + PATH="$HOME/.pyenv/bin:$PATH" py2=$(pyenv install --list | sed 's/^ //' | grep -e '^3' | grep --invert-match 'dev\|a\|b' | tail -1) py3=$(pyenv install --list | sed 's/^ //' | grep -e '^2' | grep --invert-match 'dev\|a\|b' | tail -1) pyenv install "$py2"