This commit is contained in:
Max Kovgan 2025-01-11 20:02:00 -08:00 committed by GitHub
commit e34e6eca8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -89,4 +89,9 @@ if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
autoload -U add-zsh-hook
add-zsh-hook chpwd workon_cwd
[[ $PWD != ~ ]] && workon_cwd
else
if [[ "${chpwd_functions[(Ie)workon_cwd]}" -ne 0 ]]; then
autoload -U add-zsh-hook
add-zsh-hook -d chpwd workon_cwd
fi
fi