diff --git a/.bashrc b/.bashrc index beb8c5e..70264b5 100644 --- a/.bashrc +++ b/.bashrc @@ -46,7 +46,7 @@ esac force_color_prompt=yes if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + if [ -x "$(command -v tput)" ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.)