Enable working without tput.

John-David Dalton 2017-02-19 19:33:10 -08:00
parent b54e147442
commit 7c271729ef
1 changed files with 3 additions and 1 deletions

4
nvm.sh
View File

@ -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 ]
}