Skip to content

Commit

Permalink
[Fix] nvm_has_colors: avoid an aliased tput
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 20, 2024
1 parent 81f18bc commit d5e2c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ nvm_command_info() {
nvm_has_colors() {
local NVM_NUM_COLORS
if nvm_has tput; then
NVM_NUM_COLORS="$(tput -T "${TERM:-vt100}" colors)"
NVM_NUM_COLORS="$(command tput -T "${TERM:-vt100}" colors)"
fi
[ "${NVM_NUM_COLORS:--1}" -ge 8 ] && [ "${NVM_NO_COLORS-}" != '--no-colors' ]
}
Expand Down

0 comments on commit d5e2c92

Please sign in to comment.