[Fix] use `\hash` instead of `command hash` for `zsh`

See #3239; Fixes #3247; Closes #3246
master
Jordan Harband 2023-12-05 21:48:51 -08:00
parent c73009f503
commit d86f270438
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

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