mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-01-10 08:56:47 +00:00
Use the lazy-loaded version of virtualenvwrapper if available
This shouldn't cause problems for anyone and should improve startup times for anyone using python with virtualenvwrapper because it will wait for the first command to load rather than right away.
This commit is contained in:
parent
46a1ffaf7e
commit
2794f95d3e
@ -46,6 +46,8 @@ if zstyle -T ':prezto:module:python' skip-virtualenvwrapper-init; then
|
|||||||
pyenv virtualenvwrapper
|
pyenv virtualenvwrapper
|
||||||
elif (( $+commands[pyenv-virtualenv-init] )); then
|
elif (( $+commands[pyenv-virtualenv-init] )); then
|
||||||
eval "$(pyenv virtualenv-init -)"
|
eval "$(pyenv virtualenv-init -)"
|
||||||
|
elif (( $+commands[virtualenvwrapper_lazy.sh] )); then
|
||||||
|
source "$commands[virtualenvwrapper_lazy.sh]"
|
||||||
elif (( $+commands[virtualenvwrapper.sh] )); then
|
elif (( $+commands[virtualenvwrapper.sh] )); then
|
||||||
source "$commands[virtualenvwrapper.sh]"
|
source "$commands[virtualenvwrapper.sh]"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user