Some checks are pending
macos_build / macos_build (3.10) (push) Waiting to run
macos_build / macos_build (3.11) (push) Waiting to run
macos_build / macos_build (3.12) (push) Waiting to run
macos_build / macos_build (3.13) (push) Waiting to run
macos_build / macos_build (3.14) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-14) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-15) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-15-intel) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-26) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-22.04) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-24.04) (push) Waiting to run
ubuntu_build / ubuntu_build (3.10) (push) Waiting to run
ubuntu_build / ubuntu_build (3.11) (push) Waiting to run
ubuntu_build / ubuntu_build (3.12) (push) Waiting to run
ubuntu_build / ubuntu_build (3.13) (push) Waiting to run
ubuntu_build / ubuntu_build (3.14) (push) Waiting to run
30 lines
569 B
Bash
Executable File
30 lines
569 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
[ -n "$PYENV_DEBUG" ] && set -x
|
|
|
|
# Provide pyenv completions
|
|
if [ "$1" = "--complete" ]; then
|
|
exec pyenv-rehash --complete
|
|
fi
|
|
|
|
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
|
|
|
|
# When pyenv shell integration is enabled, delegate to pyenv-rehash,
|
|
# then tell the shell to empty its command lookup cache.
|
|
case "$shell" in
|
|
pwsh)
|
|
echo "& (get-command pyenv -commandtype application) rehash"
|
|
;;
|
|
*)
|
|
echo "command pyenv rehash"
|
|
esac
|
|
|
|
case "$shell" in
|
|
fish | pwsh )
|
|
# no executable cache
|
|
;;
|
|
* )
|
|
echo "hash -r 2>/dev/null || true"
|
|
;;
|
|
esac
|