Is there a way for the command line and the output to be in different colors? For example, I've been playing with the PS1 value so my prompt is in red, but I'd like to have the command line in green and the output in white (ex: if I type "ls", that's in green, and then the file list is in white).
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
You need to have the shell, or a program, emit the appropriate escape sequence to change the colours after you press enter. The bash shell used by current OS X doesn't have an obvious facility for doing this. |
|||
|
|
You could bind another key to send the escape sequence and a return.
You'll have to get used to using that keyboard shortcut instead of return…although there's probably an app that will let you the system treat return in Terminal as that alternate shortcut. |
|||
|
|