Sfoglia il codice sorgente

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

For example bash-5.1, bash-static.
pull/1835/head
Ville Skyttä 5 anni fa
parent
commit
61d702405d
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      libexec/pyenv-init

+ 1
- 0
libexec/pyenv-init Vedi File

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

Caricamento…
Annulla
Salva