I would like to know what is the method to do syntax highlighting in terminal. I am trying to avoid my mouse to become more of a keyboard junkie so I am working more on Terminal and trying to learn vim. When I decide to look back at some previous commands on terminal, its tough to read. So I was hoping that a syntax highlighting will differentiate the line I enter to that from the machine. I did see a previous post at Can I make my Mac OS X Terminal color items according to syntax, like the Ubuntu terminal?. But as it was asked in 2011, I am hoping the process has got easier.
Asked
Active
Viewed 1,856 times
2
PS1. Different colors for command and resulting output is impossible (unless your output contains color escape codes by itself). At least not in a terminal emulator that I know of. And typical keyboard junkies (like me) find a (well) customized, (well) colorized prompt more than capable of distinguishing everything, so you'd better get used to it. – 4ae1e1 Mar 21 '15 at 15:14