Fix slow prompt in pipenv and poetry environments
_autoswitch_startup now properly removes itself from the precmd hook.
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
1112 if ! type pwgen 1>/dev/null; then
13 printf "${PURPLE}pwgen is required for zsh-autoswitch-virtualenv to run${NONE}\n"