Fix rehash

This commit is contained in:
Ivan Pozdeev 2025-12-05 20:57:07 +03:00
parent 0f7b8fa8ee
commit a6ea5b3179
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ shell="$(basename "${PYENV_SHELL:-$SHELL}")"
# When pyenv shell integration is enabled, delegate to pyenv-rehash, # When pyenv shell integration is enabled, delegate to pyenv-rehash,
# then tell the shell to empty its command lookup cache. # then tell the shell to empty its command lookup cache.
echo "pyenv-rehash" echo "command pyenv rehash"
case "$shell" in case "$shell" in
fish ) fish )

View File

@ -110,7 +110,7 @@ SH
@test "sh-rehash in bash" { @test "sh-rehash in bash" {
create_executable "3.4" "python" create_executable "3.4" "python"
PYENV_SHELL=bash run pyenv-sh-rehash PYENV_SHELL=bash run pyenv-sh-rehash
assert_success "pyenv-rehash assert_success "command pyenv rehash
hash -r 2>/dev/null || true" hash -r 2>/dev/null || true"
} }
@ -124,7 +124,7 @@ hash -r 2>/dev/null || true"
@test "sh-rehash in fish" { @test "sh-rehash in fish" {
create_executable "3.4" "python" create_executable "3.4" "python"
PYENV_SHELL=fish run pyenv-sh-rehash PYENV_SHELL=fish run pyenv-sh-rehash
assert_success "pyenv-rehash" assert_success "command pyenv rehash"
} }
@test "sh-rehash in fish (integration)" { @test "sh-rehash in fish (integration)" {