本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
isprogram
/
pyenv
镜像来自
https://github.com/pyenv/pyenv.git
關注
1
收藏
0
複製
0
程式碼
問題
0
Projects
0
版本發佈
241
Wiki
活動
瀏覽代碼
Extract rbenv-shims
pull/360/head^2
Sam Stephenson
15 年之前
父節點
69d596f56f
當前提交
61830048d5
共有
2 個檔案被更改
,包括
18 行新增
和
4 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-4
libexec/rbenv-exec
+17
-0
libexec/rbenv-shims
+ 1
- 4
libexec/rbenv-exec
查看文件
@ -4,10 +4,7 @@ set -e
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
for command in "${RBENV_ROOT}/shims/"*; do
echo "${command##*/}"
done
exit
exec rbenv shims --short
fi
RBENV_COMMAND="$1"
+ 17
- 0
libexec/rbenv-shims
查看文件
@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --short
exit
fi
for command in "${RBENV_ROOT}/shims/"*; do
if [ "$1" = "--short" ]; then
echo "${command##*/}"
else
echo "$command"
fi
done | sort
Write
Preview
Loading…
取消
儲存