mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
parent
742260b55f
commit
e00562e7cf
@ -82,6 +82,7 @@ function _python-workon-cwd {
|
|||||||
# Load auto workon cwd hook
|
# Load auto workon cwd hook
|
||||||
if zstyle -t ':prezto:module:python:virtualenv' auto-switch 'yes'; then
|
if zstyle -t ':prezto:module:python:virtualenv' auto-switch 'yes'; then
|
||||||
# Auto workon when changing directory
|
# Auto workon when changing directory
|
||||||
|
autoload -Uz add-zsh-hook
|
||||||
add-zsh-hook chpwd _python-workon-cwd
|
add-zsh-hook chpwd _python-workon-cwd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user