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
|
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\`."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue