Browse Source

python: autoload add-zsh-hook when needed (#1549)

Fixes #1550
master
bryndin 7 years ago committed by Kaleb Elwert
parent
commit
a3266044e4
  1. 1
      modules/python/init.zsh

1
modules/python/init.zsh

@ -82,6 +82,7 @@ function _python-workon-cwd { @@ -82,6 +82,7 @@ function _python-workon-cwd {
# Load auto workon cwd hook
if zstyle -t ':prezto:module:python:virtualenv' auto-switch 'yes'; then
# Auto workon when changing directory
autoload -Uz add-zsh-hook
add-zsh-hook chpwd _python-workon-cwd
fi

Loading…
Cancel
Save