From b73f07c77bd3c6846db6337ed67a36c531df97fe Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 20 Oct 2012 12:04:11 -0400 Subject: [PATCH] disable colors if logging --- .bin/bash-colors | 1 + 1 file changed, 1 insertion(+) diff --git a/.bin/bash-colors b/.bin/bash-colors index b2182b4..04c6376 100755 --- a/.bin/bash-colors +++ b/.bin/bash-colors @@ -10,6 +10,7 @@ if [[ $1 == "--env" ]] ; then NORMAL="\$'\e[0m'" ) for c in "${colors[@]}" ; do + [[ -t 0 ]] || c="${c%=*}=" echo "${c}" done -- 2.39.5