mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Replacing cd override with zsh hook in virtualenvwrapper.
This commit is contained in:
parent
79196f8213
commit
580bf9bb24
1 changed files with 2 additions and 4 deletions
|
|
@ -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\`."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue