Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

See #3239; Fixes #3247; Closes #3246

authored by Jordan Harband · committed by Jordan Harband · parent c73009f · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:nvm.sh+2 added-2 removed
3563 unmodified lines
3564 nvm_err "Could not find ${NVM_DIR}/*/bin in \${PATH}"3565 fi3566 else3567 export PATH="${NEWPATH}"3568 command hash -r3568 \hash -r3569 if [ "${NVM_SILENT:-0}" -ne 1 ]; then3570 nvm_echo "${NVM_DIR}/*/bin removed from \${PATH}"3571 fi3572 fi
123 unmodified lines
3696 MANPATH="$(nvm_change_path "${MANPATH}" "/share/man" "${NVM_VERSION_DIR}")"3697 export MANPATH3698 fi3699 export PATH3700 command hash -r3700 \hash -r3701 export NVM_BIN="${NVM_VERSION_DIR}/bin"3702 export NVM_INC="${NVM_VERSION_DIR}/include/node"3703 if [ "${NVM_SYMLINK_CURRENT-}" = true ]; then3704 command rm -f "${NVM_DIR}/current" && ln -s "${NVM_VERSION_DIR}" "${NVM_DIR}/current"
744 unmodified lines