In this tutorial I will show you how you can change the look and behavior of the prompt to show more details or use a different coloring style. I will explain how to try all these examples and how to make changes permanently by adding them inside the Bash configuration file. Please note that this stuff is Bash-specific and it won’t work in other shells.
Full article here:
TuxArena | Tutorial: Customizing Your Bash Prompt (TuxArena)
RELATED: Some of you might prefer to run a program that customizes the bash prompt for you. For you there’s bash-prompt-customizer-cli at GitHub.