Skip to content

Commit

Permalink
python: autoload add-zsh-hook when needed (sorin-ionescu#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryndin authored and belak committed Feb 23, 2018
1 parent 742260b commit e00562e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/python/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e00562e

Please sign in to comment.