瀏覽代碼

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

For example bash-5.1, bash-static.
pull/1835/head
Ville Skyttä 5 年之前
父節點
當前提交
61d702405d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      libexec/pyenv-init

+ 1
- 0
libexec/pyenv-init 查看文件

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

Loading…
取消
儲存