From d86f2704380fbb0b835dae07ebbb2b2f82e074fd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 5 Dec 2023 21:48:51 -0800 Subject: [PATCH] [Fix] use `\hash` instead of `command hash` for `zsh` See #3239; Fixes #3247; Closes #3246 --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index c02adddc84..5b31f5c0c8 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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