浏览代码

Add bin to list plugin scripts

pull/360/head^2
Joshua Peek 15 年前
父节点
当前提交
789ace54ec
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. +19
    -0
      libexec/rbenv-plugin-scripts

+ 19
- 0
libexec/rbenv-plugin-scripts 查看文件

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo exec
echo rehash
echo which
exit
fi
shopt -s nullglob
RBENV_EXEC_PLUGINS=(/etc/rbenv.d/$1/*.bash ${RBENV_ROOT}/rbenv.d/$1/*.bash)
shopt -u nullglob
for script in ${RBENV_EXEC_PLUGINS[@]}; do
echo $script
done

正在加载...
取消
保存