[Fix] avoid overridden `hash`

Fixes #3239
Jordan Harband 2023-11-24 20:42:53 -08:00
parent 99646ee600
commit cc765cc000
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -3559,7 +3559,7 @@ nvm() {
fi
else
export PATH="${NEWPATH}"
hash -r
command hash -r
if [ "${NVM_SILENT:-0}" -ne 1 ]; then
nvm_echo "${NVM_DIR}/*/bin removed from \${PATH}"
fi
@ -3691,7 +3691,7 @@ nvm() {
export MANPATH
fi
export PATH
hash -r
command hash -r
export NVM_BIN="${NVM_VERSION_DIR}/bin"
export NVM_INC="${NVM_VERSION_DIR}/include/node"
if [ "${NVM_SYMLINK_CURRENT-}" = true ]; then