From bfca6b9cd073611e325b4e60c8aeb06af0c2fc00 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sun, 11 Sep 2011 18:44:58 +0300 Subject: [PATCH] bashrc: Make the colours work with every OS. --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 3d572f82..b25e191c 100644 --- a/bashrc +++ b/bashrc @@ -41,7 +41,7 @@ esac force_color_prompt=yes if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + if which tput >&/dev/null && 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.)