From 402626b699966c6bc7b25477eb1760fa6ac77826 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 7 Sep 2018 14:22:08 +0200 Subject: [PATCH] Don't hardcode tput's path, makes it work in termux and such --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index be35479..f0ed630 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.)