From d5f2878a97ea647cabe4c1be57f3df4dc161fd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 18 Oct 2022 20:37:46 +0300 Subject: [PATCH] Strip - when autodetecting shell (#377) For example bash-5.1, bash-static. --- bin/pyenv-virtualenv-init | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index a24a785..e12769a 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -45,6 +45,7 @@ if [ -z "$shell" ]; then shell="${shell%% *}" shell="${shell:-$SHELL}" shell="${shell##*/}" + shell="${shell%%-*}" fi if [ -z "$print" ]; then