#!theme
#
######################################################
#
# just_cool prompt
# created by Bluskye (anhlai@uiuc.edu) June26, 2000
# added new directory size counting function by ?
# modified a bit by arne and included in the bashish sources
# yes, I do think this is one of the coolest prompts in the collection,
# esp with the steel color scheme
#
######################################################

needmod color
needmod number-base
XFONT=drift.pcf.gz
XFGCOLOR=grey80
XBGCOLOR=black
space_command ()
{
local TotalBytes=0
## hmm.. changed the 30 to 31
for Bytes in $(ls -l | grep "^-" | cut -c31-41)
do
    let TotalBytes=$TotalBytes+$Bytes
done

TotalMeg=$(echo -e "scale=3 \nx=$TotalBytes/1048576\n if (x<1) {print \"0\"} \n print x \nquit" | bc)

}

NM="`color 1 34`" 
HI="`color 34`"
SI="`color 31`" 

case "$1" in
--help|-help|-h)
WELCOMEMESSAGE="
you may specify these options

-scheme blue
-scheme steel
-scheme red
-scheme orange
"
;;
-scheme)
case $2 in
blue)
NM="`color 1 94`"
HI="`color 34`"
SI="`color 94`"

;;
steel)
NM="`color 1 30`"
HI="`color 90`"
SI="`color 90`"

;;
red)
NM="`color 1 31`"
HI="`color 31`"
SI="`color 31`"
;;
orange)
NM="`color 1 93`"
HI="`color 33`"
SI="`color 93`"
;;
pink)
NM="`color 95`"
HI="`color 35`"
SI="`color 95`"

esac
esac
TITLE=$USER 

PROMPT_COMMAND=space_command
PS1=$NM"\326\304\304\304\372\371("$HI"\u"$NM" on "$HI"\h"$NM","$HI" \
$TTY"$NM")\304\304("$HI"\@"$NM")\304\304("$HI""'`space_command`${TotalMeg}'"mb"$NM")\371\371\372\372
\303\304\371\326\304\371\264"$SI"\w"$NM"\303\371\372
"$NM"\324\371\371\323\304\371`color normal` "
