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. \h \W indicates the format of the prompt: path.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.
0 Comments
Leave a Reply. |