mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
feat(virtualenvwrapper): run function on startup (#12163)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user