Operating System - Linux
1829716 Members
2480 Online
109992 Solutions
New Discussion

Re: Change Color to Black and White

 
SOLVED
Go to solution
george_114
Advisor

Change Color to Black and White

How can i change my dir color to black and white dan text color when i using vi to black and white color too.Please help me bcz my eyes have iritated bcz of it.
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: Change Color to Black and White

The directory listsings is done by aliasing the 'ls' command to 'ls --color=tty'.

Simple solution, 'unlias ls'.

To remove this permenantly, either put this in your '~/.bashrc', or 'chmod -x /etc/profile.d/colorls.sh' (which is the part of the loging process which creates the alaises).
One long-haired git at your service...
Stuart Browne
Honored Contributor

Re: Change Color to Black and White

Umm, I suppose I should say that the later part is for RH systems. I'm unsure how other distributions achieve this. Possibly in the /etc/profile, or something similar.
One long-haired git at your service...
george_114
Advisor

Re: Change Color to Black and White

Hi Stuart, I have removed file /etc/profile.d/colorls.sh and after that i logout and login again when i do ls -l, it's color is black and white but when i do vi a text file, the blue dark color appear again even i have exited from that file and do ls -l again, it's color appears same, dark blue..... Why ???
Stuart Browne
Honored Contributor
Solution

Re: Change Color to Black and White

Ooops, forgot about vi, my apologies.

Add the following line your ~/.vimrc file:

syntax off

That should turn off syntax highlighting (i.e. colors).
One long-haired git at your service...