From e00562e7cf20c48a255212a088ab134ea0c6a543 Mon Sep 17 00:00:00 2001 From: bryndin Date: Fri, 23 Feb 2018 13:39:45 -0800 Subject: [PATCH] python: autoload add-zsh-hook when needed (#1549) Fixes #1550 --- modules/python/init.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index 94eeab79..bb48f6cd 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -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