Where the string exfxcxdxbxegedabagacad is a concatenation of pairs of the format TB, where T is the text color and B is the Background color. Now, let’s learn how we can configure our Terminal to obtain the colors of the figure.Ĭolors can be changed using the LSCOLORS variable in the ~/.bash_profile. Save the file, and activate the changes like before. You only need to open the ~/.bash_profile file and add the following line: Source ~/.bash_profile Activate colors in your TerminalĪctivate colors is very easy. To activate these changes open and close the terminal, or run You can find more information about these special characters in this link.
Where the first line is a comment indicating the default value, and To change the color of the Terminal prompt to a green color, open or create the file ~/.bash_profile and \W]\$ ‘ # \W]\$\ ‘ It also covers how to activate the Terminal color layout, a very useful feature that displays different colors depending on the character of the file or folder. This post explains how you can change the color of the Terminal prompt in Mac OS X.