Browse Source

Strip -<suffix> when autodetecting shell (#377)

For example bash-5.1, bash-static.
pull/447/head v1.2.0
Ville Skyttä 1 year ago
committed by GitHub
parent
commit
d5f2878a97
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      bin/pyenv-virtualenv-init

+ 1
- 0
bin/pyenv-virtualenv-init View File

@ -45,6 +45,7 @@ if [ -z "$shell" ]; then
shell="${shell%% *}"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
shell="${shell%%-*}"
fi
if [ -z "$print" ]; then

Loading…
Cancel
Save