mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-04 20:37:37 +08:00
Merge 1af0fedcf0 into b42f22643a
This commit is contained in:
commit
b4d5a1109a
@ -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