summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbash-git-prompt.in2
1 files changed, 1 insertions, 1 deletions
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