使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
pyenv
镜像自地址
https://github.com/pyenv/pyenv.git
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
181
百科
动态
浏览代码
rbenv-init: do not use basename for $shell
This can be done using bash directly.
pull/487/head^2
Daniel Hahler
9 年前
父节点
5b9e4f0584
当前提交
4ea7d0849b
共有
1 个文件被更改
,包括
2 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+2
-1
libexec/rbenv-init
+ 2
- 1
libexec/rbenv-init
查看文件
@ -25,7 +25,8 @@ if [ -z "$shell" ]; then
shell="$(ps c -p "$PPID" -o 'ucomm=' 2>/dev/null || true)"
shell="${shell##-}"
shell="${shell%% *}"
shell="$(basename "${shell:-$SHELL}")"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
fi
root="${0%/*}/.."
撰写
预览
正在加载...
取消
保存