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