From dec191e8365184bf1f434bc668025421d5cabdc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Reegn?= Date: Tue, 11 Apr 2023 10:27:41 +0200 Subject: [PATCH] Fix zsh shell hook performance issue The precmd hook is causing a significant overhead on every command executed in the shell. The shell hook does not need to be this strict however, it can also run only on directory changes, ensuring that the shell remains snappy while executing commands. Also contains a similar fix for fish. Fixes #259. --- bin/pyenv-virtualenv-init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index e12769a..f5207a7 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -104,7 +104,7 @@ esac case "$shell" in fish ) cat <