25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
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