[Fix] nvm_has_colors: also check if stdout is a terminal

This commit is contained in:
Jordan Harband
2026-01-26 23:31:00 -08:00
parent d2f93c1c8e
commit 35212c1346
17 changed files with 94 additions and 39 deletions

View File

@@ -11,6 +11,8 @@ die () {
set -e
nvm_has_colors() { return 0; }
nvm_get_colors(){
echo "0;95m"
}

View File

@@ -22,6 +22,8 @@ if [ -n ${NVM_COLORS} ]; then
unset NVM_COLORS
fi
nvm_has_colors() { return 0; }
# default system color
nvm use system
OUTPUT=$(nvm_print_versions system)