From d5e2c92a254cc10e95cd960a47515bec2d5c5e81 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 20 Aug 2024 09:23:45 -0700 Subject: [PATCH] [Fix] `nvm_has_colors`: avoid an aliased `tput` Fixes #3413 --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 8c410dfb64..685e7f2ae7 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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' ] }