Pārlūkot izejas kodu

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

For example bash-5.1, bash-static.
pull/1835/head
Ville Skyttä pirms 5 gadiem
vecāks
revīzija
61d702405d
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      libexec/pyenv-init

+ 1
- 0
libexec/pyenv-init Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt