aa795e4d1b742955479847059ba7316637ed9ed6

Author
Michael Aquilina <michaelaquilina@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

Merge pull request #160 from yut23/patch-1

Fix slow prompt in pipenv and poetry environments

Diff

 1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
 2index bf2b1e31b2bc47c3da494079c32c92eab8003bd0..c66d7afdb33671bbe20cd09c67ea51e3736a5ca6 100644
 3--- a/autoswitch_virtualenv.plugin.zsh
 4+++ b/autoswitch_virtualenv.plugin.zsh
 5@@ -398,7 +398,7 @@ function disable_autoswitch_virtualenv() {
 6 # immediately removes itself from the zsh-hook.
 7 # This seems important for "instant prompt" zsh themes like powerlevel10k
 8 function _autoswitch_startup() {
 9-    add-zsh-hook -D precmd _startup
10+    add-zsh-hook -D precmd _autoswitch_startup
11 
12     if ! type pwgen 1>/dev/null; then
13         printf "${PURPLE}pwgen is required for zsh-autoswitch-virtualenv to run${NONE}\n"