Use background color for HR

This commit is contained in:
Andrew Tomaka 2013-02-23 14:16:31 -05:00
parent d4aa1a6df3
commit 250c75ce56

10
.bashrc
View file

@ -17,17 +17,17 @@ function prompt {
for (( f=0; f<$FILLS; f++ )) for (( f=0; f<$FILLS; f++ ))
do do
LINE=$LINE"\e(0q\e(B" LINE=$LINE"\e[0;34;44m-"
done done
PS1="\e[1;34m[\t] \w ${LINE}\n" PS1="\e[44;1;37m[\t] \w ${LINE}\e[0m\n"
if [ "$SSH_CONNECTION" == "" ]; then if [ "$SSH_CONNECTION" == "" ]; then
# Yellow prompt for local login # Yellow prompt for local login
PS1="$PS1\[\e[1;32m\][\u@\h]" PS1="$PS1\[\e[1;32;40m\][\u@\h]"
else else
PS1="$PS1\[\e[1;33m\][\u@\h]" PS1="$PS1\[\e[1;32;40m\][\u@\h]"
fi 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 PROMPT_COMMAND=prompt