The main reason for this plugin is to avoid overriding the cd command by using zsh chpwd hooks instead. But I stumbled upon #1238 and there are several improvements there, so I rerolled some cherrypicked commits for a new Pull Request (@neoascetic closed his PR).
Add git_get_root function which returns root of current repo
Use in Virtualenvwrapper plugin
Fixes venvwrapper deactivate when switching git repos
Use local variables.
Use chpwd hook instead of overriding cd command
There was so many PRs in this repo!.. :D
Sure, but overriding cd is definitely a code smell. Let's fix that!