This website works better with JavaScript.
首頁
探索
說明
登入
isprogram
/
pyenv
镜像来自
https://github.com/pyenv/pyenv.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
Projects
0
版本發佈
241
Wiki
Activity
瀏覽代碼
Merge pull request
#731
from blueyed/init-no-basename-for-shell
rbenv-init: do not use basename for $shell
pull/487/head^2
Mislav Marohnić
10 年之前
父節點
c6cf4e18b8
4ea7d0849b
當前提交
c43928a8e4
共有
1 個文件被更改
,包括
2 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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%/*}/.."
Write
Preview
Loading…
取消
儲存