From 3c601a4447744429c859f3de9fa74b105dc153bf Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 25 Feb 2013 14:53:12 -0500 Subject: [PATCH] Fix color change based on --- .bashrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 215c30f..a846190 100755 --- a/.bashrc +++ b/.bashrc @@ -21,10 +21,9 @@ function prompt { PS1="\e[44;1;37m[\t] \w ${LINE}\e[0m\n" if [ "$SSH_CONNECTION" == "" ]; then - # Yellow prompt for local login PS1="$PS1\[\e[1;32;40m\][\u@\h]" else - PS1="$PS1\[\e[1;32;40m\][\u@\h]" + PS1="$PS1\[\e[1;33;40m\][\u@\h]" fi PS1="$PS1\$(if [ \$? = 0 ]; then echo -e \"\$\"; else echo -e \"\[\e[0;31m\]\$\"; fi)\[\e[0m\] " }