Skip to content

Commit d86f270

Browse files
committed
[Fix] use \hash instead of command hash for zsh
See #3239; Fixes #3247; Closes #3246
1 parent c73009f commit d86f270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3565,7 +3565,7 @@ nvm() {
35653565
fi
35663566
else
35673567
export PATH="${NEWPATH}"
3568-
command hash -r
3568+
\hash -r
35693569
if [ "${NVM_SILENT:-0}" -ne 1 ]; then
35703570
nvm_echo "${NVM_DIR}/*/bin removed from \${PATH}"
35713571
fi
@@ -3697,7 +3697,7 @@ nvm() {
36973697
export MANPATH
36983698
fi
36993699
export PATH
3700-
command hash -r
3700+
\hash -r
37013701
export NVM_BIN="${NVM_VERSION_DIR}/bin"
37023702
export NVM_INC="${NVM_VERSION_DIR}/include/node"
37033703
if [ "${NVM_SYMLINK_CURRENT-}" = true ]; then

0 commit comments

Comments
 (0)