My Customized Bash Prompt
I love customizing stuffs to make them more functional or aesthetically pleasing. I customized my Bash prompt to achieve both.
Here is how it looks:
The color combination might not fit everyone’s taste, but I find this prompt to be better in some other ways.
Here are a few reasons why I chose to customize the prompt this way:
- Clock: There is a 24 hour clock integrated to the terminal (yellow).
- Less clutter with two lines: you write your commands in the second line. This leaves your first line to have as long of a path as you need. (I find it cumbersome to work in the terminal when the relative path is long.)
- Readability: The colors signifying the (user@host), the (~/path), and the commands you write are different.
If you want exact same look as I have here, put this in your
If you want to experiment customizing your prompt, here are some good resources that I found useful: