Skip to content

Commit

Permalink
[Fix] use \hash instead of command hash for zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 6, 2023
1 parent c73009f commit d86f270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d86f270

Please sign in to comment.