您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

22 行
380 B

11 年前
  1. #!/usr/bin/env bash
  2. # Summary: List existing rbenv shims
  3. # Usage: rbenv shims [--short]
  4. set -e
  5. [ -n "$RBENV_DEBUG" ] && set -x
  6. # Provide rbenv completions
  7. if [ "$1" = "--complete" ]; then
  8. echo --short
  9. exit
  10. fi
  11. shopt -s nullglob
  12. for command in "${RBENV_ROOT}/shims/"*; do
  13. if [ "$1" = "--short" ]; then
  14. echo "${command##*/}"
  15. else
  16. echo "$command"
  17. fi
  18. done | sort