From 70d8febe5a90a451998640a65f6901dad884fe96 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 12 Mar 2017 11:04:54 +0100 Subject: use "tput colors" to detect if colors are available --- bash-git-prompt.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-git-prompt.in b/bash-git-prompt.in index d2bbdb3..b57bef2 100755 --- a/bash-git-prompt.in +++ b/bash-git-prompt.in @@ -2,7 +2,7 @@ # bash-git-prompt version #VERSION# -[[ "$TERM" = *color ]] && mitFarbe=true || mitFarbe=false +tput colors &> /dev/null && mitFarbe=true || mitFarbe=false if [ -z "$PS1Start" ] && [ -z "$PS1Ende" ] && [ -n "$PS1" ] then -- cgit v1.2.3-54-g00ecf