Let’s change the color of our command prompt to green: $ PS1='\\d:\t$ \'
Moreover, all codes that set the font color start with digit 3. The first part is the zero number for the dark version of the color or one for the light version. In addition, it should contain a code to a corresponding color.Ĭolor codes comprise two parts, separated by a semicolon, and are followed by the letter m. A color character sequence starts with a \. We set terminal colors with non-printable escape character sequences.