Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

23 rader
444 B

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