[Fix] avoid overridden `hash`
Fixes #3239
parent
99646ee600
commit
cc765cc000
4
nvm.sh
4
nvm.sh
|
@ -3559,7 +3559,7 @@ nvm() {
|
|||
fi
|
||||
else
|
||||
export PATH="${NEWPATH}"
|
||||
hash -r
|
||||
command hash -r
|
||||
if [ "${NVM_SILENT:-0}" -ne 1 ]; then
|
||||
nvm_echo "${NVM_DIR}/*/bin removed from \${PATH}"
|
||||
fi
|
||||
|
@ -3691,7 +3691,7 @@ nvm() {
|
|||
export MANPATH
|
||||
fi
|
||||
export PATH
|
||||
hash -r
|
||||
command hash -r
|
||||
export NVM_BIN="${NVM_VERSION_DIR}/bin"
|
||||
export NVM_INC="${NVM_VERSION_DIR}/include/node"
|
||||
if [ "${NVM_SYMLINK_CURRENT-}" = true ]; then
|
||||
|
|
Loading…
Reference in New Issue