fix: pyenv venv init
This commit is contained in:
@@ -14,4 +14,6 @@ if status is-interactive
|
|||||||
replay "source $HOME/.profile"
|
replay "source $HOME/.profile"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pyenv init - | source
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ export PATH="$YARN_DIR/bin:$PATH"
|
|||||||
# pyenv
|
# pyenv
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
if [ -d "$PYENV_ROOT" ]; then
|
if [ -x `command -v pyenv` ]; then
|
||||||
[ -x `command -v pyenv` ] && eval "$(pyenv init --path)"
|
eval "$(pyenv init --path)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# poetry
|
# poetry
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ if ! bin_in_path "pyenv"; then
|
|||||||
# see https://github.com/pyenv/pyenv-installer
|
# see https://github.com/pyenv/pyenv-installer
|
||||||
download_run "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" \
|
download_run "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" \
|
||||||
bash
|
bash
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
virtualenv_path="$(pyenv root)/plugins/pyenv-virtualenv"
|
||||||
|
if [ ! -d "$virtualenv_path" ]; then
|
||||||
|
git clone https://github.com/pyenv/pyenv-virtualenv.git $virtualenv_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval "$(pyenv init --path)"
|
eval "$(pyenv init --path)"
|
||||||
|
|||||||
Reference in New Issue
Block a user