SIGN IN SIGN UP
nvm-sh / nvm UNCLAIMED

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

0 0 80 Shell

[Fix] `nvm alias`: fix colors not showing by default

Colors were lost because `nvm_has_colors` checks `[ -t 1 ]`, which is false inside the `(...) | sort` pipeline in `nvm_list_aliases`.
Evaluate `nvm_has_colors` before the pipe and propagate via `NVM_HAS_COLORS`, matching the approach used by `nvm_print_versions`.

Bug introduced in https://github.com/nvm-sh/nvm/commit/35212c134652197c779dffd42b9567a270355987.
J
Jordan Harband committed
a27a8b7da8e1624390d71899d0fe676011135f72
Parent: 59bd32b