1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 09:41:20 +08:00

feat(virtualenvwrapper): run function on startup (#12163)

This commit is contained in:
Júlio Selva 2024-01-18 15:34:30 -03:00 committed by GitHub
parent 486e56aba8
commit d43f03ba91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,4 +88,5 @@ if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
# http://zsh.sourceforge.net/Doc/Release/Functions.html # http://zsh.sourceforge.net/Doc/Release/Functions.html
autoload -U add-zsh-hook autoload -U add-zsh-hook
add-zsh-hook chpwd workon_cwd add-zsh-hook chpwd workon_cwd
[[ $PWD != ~ ]] && workon_cwd
fi fi