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
}
# New cd function that does the virtualenv magic
function cd {
builtin cd "$@" && workon_cwd
}
# Add zsh hook for virtualenv magic
add-zsh-hook chpwd workon_cwd
fi
else
print "zsh virtualenvwrapper plugin: Cannot find virtualenvwrapper_lazy.sh. Please install with \`pip install virtualenvwrapper\`."