if [ "$TERM" = "linux" ]
then
#we're on the system console or maybe telnetting in
export PS1="\[\e[32;1m\]\u@\H > \[\e[0m\]"
else
#we're not on the console, assume an xterm
if [ $ddeth -gt 9 ]; then
export PS1="\[\e]2;${ip}@\u\a\e[32;1m\]$BRIGHTBLUE[$GREEN\u$BRIGHTBLUE@$GREEN\$ip4$BRIGHTBLUE]$BRIGHTGREEN\$ddeth$BRIGHTBLUE[$GREEN\W$BRIGHTBLUE]$BRIGHTGREEN\D{%m-%d %H:%M:%S}$NORMAL\n$BRIGHTGREEN($BRIGHTBLUE\$?$BRIGHTGREEN)$SYM\[\e[0m\] "
else
export PS1="\[\e]2;${ip}@\u\a\e[32;1m\]$BRIGHTBLUE[$GREEN\u$BRIGHTBLUE@$GREEN\$ip4$BRIGHTBLUE]$BRIGHTGREEN\$ddeth$BRIGHTBLUE[$GREEN\w$BRIGHTBLUE]$BRIGHTGREEN\D{%m-%d %H:%M:%S}$NORMAL\n$BRIGHTGREEN($BRIGHTBLUE\$?$BRIGHTGREEN)$SYM\[\e[0m\] "
fi
fi