Browse Source

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

Júlio Selva 3 months ago
parent
commit
d43f03ba91
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh

+ 1 - 0
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh

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