See the article
Prompt magic: Enhancing the system prompt
These are my favorites:
Try this in the user and root .bashrc files for a neat bash prompt with date, time, working directory and color.
user:
Code:
export PS1="\d \@ \[\e[32;1m\]\u\[\e[34;1m\]@\[\e[36;1m\]\H \[\e[34;1m\]\w\[\e[32;1m\] $ \[\e[0m\]"
root
Code:
export PS1="\d \@ \[\e[31;1m\]\u\[\e[34;1m\]@\[\e[36;1m\]\H \[\e[34;1m\]\w \[\e[31;1m\]# \[\e[0m\]"