From 250c75ce56a163ca15063c148042939b91667e7d Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 23 Feb 2013 14:16:31 -0500 Subject: [PATCH] Use background color for HR --- .bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.bashrc b/.bashrc index 51253f9..dc61894 100755 --- a/.bashrc +++ b/.bashrc @@ -17,17 +17,17 @@ function prompt { for (( f=0; f<$FILLS; f++ )) do - LINE=$LINE"\e(0q\e(B" + LINE=$LINE"\e[0;34;44m-" done - PS1="\e[1;34m[\t] \w ${LINE}\n" + PS1="\e[44;1;37m[\t] \w ${LINE}\e[0m\n" if [ "$SSH_CONNECTION" == "" ]; then # Yellow prompt for local login - PS1="$PS1\[\e[1;32m\][\u@\h]" + PS1="$PS1\[\e[1;32;40m\][\u@\h]" else - PS1="$PS1\[\e[1;33m\][\u@\h]" + PS1="$PS1\[\e[1;32;40m\][\u@\h]" fi - PS1="$PS1\$(if [ \$? = 0 ]; then echo -e \"\$\"; else echo -e \"\[\033[0;31m\]\$\"; fi)\[\033[0m\] " + PS1="$PS1\$(if [ \$? = 0 ]; then echo -e \"\$\"; else echo -e \"\[\e[0;31m\]\$\"; fi)\[\e[0m\] " } PROMPT_COMMAND=prompt