Bash Prompt Console Colours

Apr 2, 2014
#ansi,
#bash,
#colour,
#console,
#terminal

Bored of the standard colours of your output? So was I until I found a way to output colours to the terminal. I won’t go into detail on how to implement the colours but I will link useful posts that go into detail about this topic below.

NOTE: You may know this under a different name: ANSI Escape Sequences.

Solution

Put the following into some file loaded by bash, such as .bash_profile: