How do I customize the bash prompt

The same issue was also discussed here with a bit more detail: