浏览代码
Strip -<suffix> when autodetecting shell (#377)
For example bash-5.1, bash-static.
pull/447/head
v1.2.0
Ville Skyttä
1年前
提交者
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
1 次插入 和
0 次删除
-
bin/pyenv-virtualenv-init
|
|
@ -45,6 +45,7 @@ if [ -z "$shell" ]; then |
|
|
|
shell="${shell%% *}" |
|
|
|
shell="${shell:-$SHELL}" |
|
|
|
shell="${shell##*/}" |
|
|
|
shell="${shell%%-*}" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -z "$print" ]; then |
|
|
|