Add `nvm --version` and `$HOME` to `nvm debug`

Jordan Harband 2015-10-10 14:27:00 -07:00
parent bc4d14bea6
commit c957989fa9
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -1476,7 +1476,9 @@ nvm() {
ZHS_HAS_SHWORDSPLIT_UNSET=$(setopt | command grep shwordsplit > /dev/null ; echo $?)
setopt shwordsplit
fi
echo >&2 "nvm --version: v$(nvm --version)"
echo >&2 "\$SHELL: $SHELL"
echo >&2 "\$HOME: $HOME"
echo >&2 "\$NVM_DIR: '$(nvm_sanitize_path "$NVM_DIR")'"
echo >&2 "\$PREFIX: '$(nvm_sanitize_path "$PREFIX")'"
echo >&2 "\$NPM_CONFIG_PREFIX: '$(nvm_sanitize_path "$NPM_CONFIG_PREFIX")'"