From cdd19e9ba9e6d7f336e8ed40bbd0f6d20059afb0 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Tue, 21 Apr 2026 18:40:12 +0300 Subject: [PATCH] Refactor cache code generataion; don't generate prompt_command for non bash/zsh/fish --- bin/pyenv-virtualenv-init | 72 ++++++++++++++++++--------------------- test/init.bats | 26 ++++++++------ 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index 138fb48..1623970 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -120,22 +120,13 @@ esac case "$shell" in fish ) - if [ -n "$_has_version_hooks" ]; then - cat </dev/null) +EOS + fi + + cat </dev/null)" +EOS + fi + + cat <