Update 05.04.2026
This commit is contained in:
@@ -4,6 +4,7 @@ function {
|
||||
$commands[virtualenvwrapper.sh] \
|
||||
/usr/share/virtualenvwrapper/virtualenvwrapper{_lazy,}.sh \
|
||||
/usr/local/bin/virtualenvwrapper{_lazy,}.sh \
|
||||
/usr/bin/virtualenvwrapper{_lazy,}.sh \
|
||||
/etc/bash_completion.d/virtualenvwrapper \
|
||||
/usr/share/bash-completion/completions/virtualenvwrapper \
|
||||
$HOME/.local/bin/virtualenvwrapper.sh
|
||||
@@ -52,7 +53,7 @@ if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
|
||||
else
|
||||
ENV_NAME=""
|
||||
fi
|
||||
|
||||
|
||||
if [[ -n $CD_VIRTUAL_ENV && "$ENV_NAME" != "$CD_VIRTUAL_ENV" ]]; then
|
||||
# We've just left the repo, deactivate the environment
|
||||
# Note: this only happens if the virtualenv was activated automatically
|
||||
@@ -88,4 +89,5 @@ if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
|
||||
# http://zsh.sourceforge.net/Doc/Release/Functions.html
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook chpwd workon_cwd
|
||||
[[ $PWD != ~ ]] && workon_cwd
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user