Unverified Commit 2c54428d authored by Superbil's avatar Superbil
Browse files

Fixd bug for pyenv plugin



Check pyenv-virtualenv can eval before use it.
Signed-off-by: default avatarSuperbil <superbil@gmail.com>
parent aa15ebad
...@@ -18,7 +18,10 @@ for pyenvdir in "${pyenvdirs[@]}" ; do ...@@ -18,7 +18,10 @@ for pyenvdir in "${pyenvdirs[@]}" ; do
export PYENV_ROOT=$pyenvdir export PYENV_ROOT=$pyenvdir
export PATH=${pyenvdir}/bin:$PATH export PATH=${pyenvdir}/bin:$PATH
eval "$(pyenv init - zsh)" eval "$(pyenv init - zsh)"
if pyenv commands | command grep -q virtualenv-init; then
eval "$(pyenv virtualenv-init - zsh)" eval "$(pyenv virtualenv-init - zsh)"
fi
function pyenv_prompt_info() { function pyenv_prompt_info() {
echo "$(pyenv version-name)" echo "$(pyenv version-name)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment