From: Mike Frysinger Date: Tue, 31 Aug 2010 05:03:10 +0000 (-0400) Subject: dont set PS1 for dumb terminals X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=58d6297bd5e09534d6961209d89052976e539905;p=home.git dont set PS1 for dumb terminals --- 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\] '