mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-28 18:53:47 +08:00
Merge 1af0fedcf0 into 76ffd9e22a
This commit is contained in:
commit
a5f5367f3b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user