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 1/2] 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 e12769a8..f5207a78 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -104,7 +104,7 @@ esac case "$shell" in fish ) cat < Date: Wed, 12 Apr 2023 10:15:19 +0200 Subject: [PATCH 2/2] revert back fish fix Should be separate PR to deal with fish perf issue --- bin/pyenv-virtualenv-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index f5207a78..75a890b2 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -104,7 +104,7 @@ esac case "$shell" in fish ) cat <