[New] Print $TERM_PROGRAM in nvm debug if it exists

Peter Dave Hello 2017-07-13 06:15:00 +08:00
parent 38a568c9c9
commit ab591b07ef
1 changed files with 3 additions and 0 deletions

3
nvm.sh
View File

@ -2357,6 +2357,9 @@ nvm() {
setopt shwordsplit setopt shwordsplit
fi fi
nvm_err "nvm --version: v$(nvm --version)" nvm_err "nvm --version: v$(nvm --version)"
if [ -n "${TERM_PROGRAM-}" ]; then
nvm_err "\$TERM_PROGRAM: $TERM_PROGRAM"
fi
nvm_err "\$SHELL: $SHELL" nvm_err "\$SHELL: $SHELL"
nvm_err "\$HOME: $HOME" nvm_err "\$HOME: $HOME"
nvm_err "\$NVM_DIR: '$(nvm_sanitize_path "$NVM_DIR")'" nvm_err "\$NVM_DIR: '$(nvm_sanitize_path "$NVM_DIR")'"