Commit b9d5a390 authored by J. Randall Hunt's avatar J. Randall Hunt
Browse files

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).
parent 51e05b75
wrapsource=`which virtualenvwrapper.sh` wrapsource=`which virtualenvwrapper_lazy.sh`
if [[ -f "$wrapsource" ]]; then if [[ -f "$wrapsource" ]]; then
source $wrapsource source $wrapsource
...@@ -36,5 +36,5 @@ if [[ -f "$wrapsource" ]]; then ...@@ -36,5 +36,5 @@ if [[ -f "$wrapsource" ]]; then
} }
fi fi
else 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 fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment