Parcourir la source

feat(init): strip -<suffix> when autodetecting shell

For example bash-5.1, bash-static.
pull/1835/head
Ville Skyttä il y a 5 ans
Parent
révision
61d702405d
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. +1
    -0
      libexec/pyenv-init

+ 1
- 0
libexec/pyenv-init Voir le fichier

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

Chargement…
Annuler
Enregistrer