mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Enable working without tput.
This commit is contained in:
parent
b54e147442
commit
7c271729ef
4
nvm.sh
4
nvm.sh
@ -47,7 +47,9 @@ nvm_is_alias() {
|
|||||||
|
|
||||||
nvm_has_colors() {
|
nvm_has_colors() {
|
||||||
local NVM_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 ]
|
[ "${NVM_COLORS:--1}" -ge 8 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user