This website works better with JavaScript.
首頁
探索
說明
登入
isprogram
/
pyenv
镜像来自
https://github.com/pyenv/pyenv.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
Projects
0
版本發佈
241
Wiki
Activity
瀏覽代碼
Only shift if an argument is passed.
Fixes
#78
.
pull/360/head^2
Sam Stephenson
15 年之前
父節點
1ba2ce0cb6
當前提交
fb6eee26d4
共有
1 個文件被更改
,包括
8 次插入
和
5 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-5
libexec/rbenv-init
+ 8
- 5
libexec/rbenv-init
查看文件
@ -70,14 +70,17 @@ echo 'rbenv rehash 2>/dev/null'
commands=(`rbenv commands --sh`)
IFS="|"
cat <<EOS
function rbenv () {
command="\$1";
shift;
function rbenv() {
command="\$1"
if [ "\$#" -gt 0 ]; then
shift
fi
case "\$command" in
${commands[*]})
eval \`rbenv "sh-\$command" "\$@"\`;;
*)
command rbenv "\$command" "\$@";;
esac
;
}
;
esac
}
EOS
Write
Preview
Loading…
取消
儲存