[New] Print $SHLVL in `nvm debug`

Peter Dave Hello 2017-11-05 03:25:04 +08:00 committed by Jordan Harband
parent aad269d224
commit 3ed47431f8
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -2397,6 +2397,8 @@ nvm() {
nvm_err "\$TERM_PROGRAM: $TERM_PROGRAM" nvm_err "\$TERM_PROGRAM: $TERM_PROGRAM"
fi fi
nvm_err "\$SHELL: $SHELL" nvm_err "\$SHELL: $SHELL"
# shellcheck disable=SC2169
nvm_err "\$SHLVL: ${SHLVL-}"
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")'"
nvm_err "\$PREFIX: '$(nvm_sanitize_path "$PREFIX")'" nvm_err "\$PREFIX: '$(nvm_sanitize_path "$PREFIX")'"