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

23 行
444 B

  1. #!/usr/bin/env bash
  2. set -e
  3. [ -n "$RBENV_DEBUG" ] && set -x
  4. # Provide rbenv completions
  5. if [ "$1" = "--complete" ]; then
  6. exec rbenv-rehash --complete
  7. fi
  8. shell="$(basename "${RBENV_SHELL:-$SHELL}")"
  9. # When rbenv shell integration is enabled, delegate to rbenv-rehash,
  10. # then tell the shell to empty its command lookup cache.
  11. rbenv-rehash
  12. case "$shell" in
  13. fish )
  14. # no rehash support
  15. ;;
  16. * )
  17. echo "hash -r 2>/dev/null || true"
  18. ;;
  19. esac