Browse Source

Enable working without tput.

John-David Dalton 8 years ago
parent
commit
7c271729ef
  1. 4
      nvm.sh

4
nvm.sh

@ -47,7 +47,9 @@ nvm_is_alias() { @@ -47,7 +47,9 @@ nvm_is_alias() {
nvm_has_colors() {
local NVM_COLORS
NVM_COLORS="$(tput -T "${TERM:-vt100}" colors)"
if nvm_has tput; then
NVM_COLORS="$(tput -T "${TERM:-vt100}" colors)"
fi
[ "${NVM_COLORS:--1}" -ge 8 ]
}

Loading…
Cancel
Save