From 58d6297bd5e09534d6961209d89052976e539905 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Aug 2010 01:03:10 -0400 Subject: [PATCH] dont set PS1 for dumb terminals --- .profile.d/PS1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.profile.d/PS1.sh b/.profile.d/PS1.sh index 731133d..e76123d 100644 --- a/.profile.d/PS1.sh +++ b/.profile.d/PS1.sh @@ -1 +1 @@ -PS1='\[\e[0;33m\]\u\[\e[30;1m\]@\[\e[31;1m\]\h'$([ -e /etc/ps1_append ] && cat /etc/ps1_append)'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[0m\] ' +[ "${TERM}" != "dumb" ] && PS1='\[\e[0;33m\]\u\[\e[30;1m\]@\[\e[31;1m\]\h'$([ -e /etc/ps1_append ] && cat /etc/ps1_append)'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[0m\] ' -- 2.39.5