mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
use lazy load for virtualenvwrapper
Using lazy loading for virtualenvwrapper gives a mariginal speed improvement and doesn't stop workon_cd from working. It has the undesired effect of forcing you to call certain virtualenv commands twice before they work (only once per shell instantiation).
This commit is contained in:
parent
51e05b7579
commit
b9d5a39098
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
wrapsource=`which virtualenvwrapper.sh`
|
||||
wrapsource=`which virtualenvwrapper_lazy.sh`
|
||||
|
||||
if [[ -f "$wrapsource" ]]; then
|
||||
source $wrapsource
|
||||
|
@ -36,5 +36,5 @@ if [[ -f "$wrapsource" ]]; then
|
|||
}
|
||||
fi
|
||||
else
|
||||
print "zsh virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh. Please install with \`pip install virtualenvwrapper\`."
|
||||
print "zsh virtualenvwrapper plugin: Cannot find virtualenvwrapper_lazy.sh. Please install with \`pip install virtualenvwrapper\`."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue