≡ Menu

How to enable colors in shell and vi in Mac?

  •  
  •  
  •  

When working with shells, if your Mac does not show various colors automatically, you can enable them by two easy steps.

First add a line as shown below to your .bash_profile. This file should be under your home directory.

export CLICOLOR=1

Second, add the following line in your .vimrc file. This file should be under your home directory. If it is not there, create one.

syntax on

Log out and log back in. That’s it. Get ready for a versatile shell interface.

Shell environment – Before

Screen Shot 2016-12-24 at 10.22.49 PM

Shell environment – After

Screen Shot 2016-12-24 at 10.24.47 PM

vi environment – Before

vi controller-info.xml

Screen Shot 2016-12-24 at 10.36.42 PM

vi environment – After

vi controller-info.xml

Screen Shot 2016-12-24 at 10.38.00 PM


  •  
  •  
  •  
{ 0 comments… add one }

Leave a Comment