I would like the
CasebashMac:bfgenv chris$ part of the following line to appear in a different color in my terminal.
CasebashMac:bfgenv chris$ python
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
I set the PS1 variable in my
.bashrc to achieve this.
The terminal app does not actually change the colours, this is controlled by the shell that is being run. The default shell is bash and controlling colours is done by altering the prompt. There are many tutorials and other documents on the web to tell you more.
One guide to customising the prompt is from IBM