Elite2 Prompt

This prompt is part of the Bash Prompt Themes package, and is one that I used for quite a while - after which I hacked it substantially, and then started writing my own. I still like it. It requires a VGA font, and the code uses a lot of characters that may not display properly in your browser. Sorry.

Code:


# Created by icetrey <trey@imagin.net>
# Added by Spidey 08/06
function elite2 {
local GRAD1=`tty|cut -d/ -f3`
local COLOR1="\[\033[0;36m\]"
local COLOR2="\[\033[1;36m\]"
local COLOR3="\[\033[1;30m\]"
local COLOR4="\[\033[0m\]"
PS1="$COLOR3$COLOR1$COLOR2($COLOR1\u$COLOR3@$COLOR1\h$COLOR2)$COLOR1$COLOR2($COLOR1\#$COLOR3/$COLOR1$GRAD1$COLOR2)$COLOR1$COLOR2($COLOR1\$(date +%I:%M%P)$COLOR3:$COLOR1\$(date +%m/%d/%y)$COLOR2)$COLOR1$COLOR3-$COLOR4\n$COLOR3$COLOR1$COLOR2($COLOR1\$$COLOR3:$COLOR1\w$COLOR2)$COLOR1$COLOR3-$COLOR4 " 
PS2="$COLOR2$COLOR1$COLOR3-$COLOR4 "
}


http://gilesorr.com/bashprompt/prompts/elite2.html (1.2Kb)
Last modified 20060518 by giles