mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Run pyenv (de)activation in the background
This commit is contained in:
parent
41f2b93fc8
commit
a8c1e3fc5f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue