mirror of https://github.com/ohmyzsh/ohmyzsh.git
Prefer virtualenvwrapper_lazy (#6842)
This gives much faster start up times and only loads virtualenvwrapper when needed. Fix #6839pull/6863/head
parent
5896c87155
commit
90a5bd06ca
|
@ -1,6 +1,14 @@
|
|||
virtualenvwrapper='virtualenvwrapper.sh'
|
||||
virtualenvwrapper_lazy='virtualenvwrapper_lazy.sh'
|
||||
|
||||
if (( $+commands[$virtualenvwrapper] )); then
|
||||
if (( $+commands[$virtualenvwrapper_lazy] )); then
|
||||
function {
|
||||
setopt local_options
|
||||
unsetopt equals
|
||||
virtualenvwrapper=${${virtualenvwrapper_lazy}:c}
|
||||
source ${${virtualenvwrapper_lazy}:c}
|
||||
}
|
||||
elif (( $+commands[$virtualenvwrapper] )); then
|
||||
function {
|
||||
setopt local_options
|
||||
unsetopt equals
|
||||
|
|
Loading…
Reference in New Issue