Replacing cd override with zsh hook in virtualenvwrapper.

This commit is contained in:
Josh Matthews 2013-05-23 11:24:08 -04:00
commit 580bf9bb24

View file

@ -40,10 +40,8 @@ if [[ -f "$wrapsource" ]]; then
fi fi
} }
# New cd function that does the virtualenv magic # Add zsh hook for virtualenv magic
function cd { add-zsh-hook chpwd workon_cwd
builtin cd "$@" && workon_cwd
}
fi fi
else else
print "zsh virtualenvwrapper plugin: Cannot find virtualenvwrapper_lazy.sh. Please install with \`pip install virtualenvwrapper\`." print "zsh virtualenvwrapper plugin: Cannot find virtualenvwrapper_lazy.sh. Please install with \`pip install virtualenvwrapper\`."