mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
Prefer virtualenvwrapper_lazy (#6842)
This gives much faster start up times and only loads virtualenvwrapper when needed. Fix #6839
This commit is contained in:
parent
b87826af5d
commit
d5705ba621
1 changed files with 9 additions and 1 deletions
|
|
@ -1,6 +1,14 @@
|
||||||
virtualenvwrapper='virtualenvwrapper.sh'
|
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 {
|
function {
|
||||||
setopt local_options
|
setopt local_options
|
||||||
unsetopt equals
|
unsetopt equals
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue