Changing the bash prompt can be done in your .bashrc in your home directory. It is a hidden file (hence the .) so press CTRL + H to see it.
Then open it with your text editor. You need to look for PS1. That will define the look of your bash prompt.
There are so many tutorials already out there that it would just be double work. I am including a bunch of interesting links at the bottom.
Google for “linux ps1 prompt” or “bash prompt theming” or … to find even more.
Interesting linksĀ
- https://wiki.archlinux.org/index.php/Bash/Prompt_customization
- https://linoxide.com/how-tos/change-linux-shell-prompt-with-different-colors/
- https://medium.freecodecamp.org/jazz-up-your-bash-terminal-a-step-by-step-guide-with-pictures-80267554cb22
- https://www.maketecheasier.com/8-useful-and-interesting-bash-prompts/
- https://www.linux.com/learn/how-make-fancy-and-useful-bash-prompt-linux
- https://www.howtogeek.com/307701/how-to-customize-and-colorize-your-bash-prompt/
- https://www.computerhope.com/issues/ch001645.htm
- https://makandracards.com/makandra/1090-customize-your-bash-prompt
- https://terminalsare.sexy/#bash
Bashrc generators