no color in bash & v

Jason Spiro jasonspiro4-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu May 10 22:49:00 UTC 2007


2007/5/3, Martin Duclos <tchitow-PkbjNfxxIARBDgjK7y7TUQ at public.gmane.org> wrote:
> Hi,
> I have this nagging problem... I used to have color in bash and vi (on an
> old retired rh7.3 box). I managed to find out that export
> COLORS=/etc/dirCOLOR.xterm and I get colors in the shell. The question is,
> where is this supposed to be set? Also found dircolor which I assume to be
> an internal bash command... I did some googling and found various hints to
> set colors for specific commands like ls. What I'm trying to accomplish is
> to have colors in bash setup by default for all users and also colors when I
> use vi to edit various programming languages like perl and java.

Most distros ship with vim instead of vi.  Vim has good classic vi
emulation (enabled when you run the command "vi" from your shell) but
the vi emulation has no color.  Instead of typing "vi", type "vim".
Then you will have color.

Cheers,
Jason

-- 
Jason Spiro: computer consulting with a smile.
I provide software development and training services to clients worldwide.
Contact me for a FREE consultation. Satisfaction guaranteed.
+1 (416) 781-5938 / Email: info-1hdvTAswZAHQT0dZR+AlfA at public.gmane.org / MSN: jasonspiro-PkbjNfxxIARBDgjK7y7TUQ at public.gmane.org
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list