1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-03-31 19:34:00 +08:00
This commit is contained in:
Max Kovgan 2026-03-19 12:38:24 -04:00 committed by GitHub
commit ca3d12a20f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,4 +90,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