Run pyenv (de)activation in the background

This commit is contained in:
Harish Rajagopal 2023-03-04 16:42:41 +01:00
parent 41f2b93fc8
commit a8c1e3fc5f
No known key found for this signature in database
GPG key ID: 6D3F9FC446023F9C

View file

@ -107,9 +107,12 @@ fish )
function _pyenv_virtualenv_hook --on-variable PWD --on-variable PYENV_VERSION;
set -l ret \$status
if [ -n "\$VIRTUAL_ENV" ]
pyenv activate --quiet; or pyenv deactivate --quiet; or true
function _pyenv_activate_or_deactivate
pyenv activate --quiet || pyenv deactivate --quiet
end
_pyenv_activate_or_deactivate &
else
pyenv activate --quiet; or true
pyenv activate --quiet &
end
return \$ret
end