Skip to content

Commit

Permalink
Enable working without tput.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Feb 20, 2017
1 parent b54e147 commit 7c27172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}

Expand Down

0 comments on commit 7c27172

Please sign in to comment.