Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 2003 10:14:59 -0600
From:      Mike Meyer <mwm-dated-1047140100.219c32@mired.org>
To:        "Chris Phillips" <chris@furrie.net>
Cc:        "Matt Smith" <matt@forsetti.com>, <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: xterm + colors just wont splice...
Message-ID:  <15971.32643.956142.390471@guru.mired.org>
In-Reply-To: <006401c2e199$a54c4480$9501000a@hq.inty.net>
References:  <20030226101352.58263.qmail@web13501.mail.yahoo.com> <1046702808.69533.0.camel@d80h149.public.uconn.edu> <006401c2e199$a54c4480$9501000a@hq.inty.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In <006401c2e199$a54c4480$9501000a@hq.inty.net>, Chris Phillips <chris@furrie.net> typed:
> I too, would like to see similar colours to what I used to, when I was
> running Mandrake.  For example, you'd get different file types shown in
> different colours (when doing "ls") & even in vi you'd get code coloured
> in a nice & helpful fashion.  Editing HTML was a joy!

You can either alias ls to "ls -C", or install the gnuls port and make
sure that ls is first in your path. You may need to find which vi -
there are at least three - you were using on mandrake, and install
that. Other than the system one, there are vim and nvi in the
ports. Hopefully, a vi user will chime in with which ones do syntax
coloring.

> My favoured shell is zsh (it's what we use at work, so I am sticking
> with it) & I've searched for some .zshrc examples but not had any great
> joy I'm afraid.

zsh does colors just fine if you set the term type to xterm-color.
You need to do:

	autoload -U colors
	colors

in your .zshrc to enable them, then you can use them in your
prompts. I set my RPROPMT like so:

	RPROMPT=" %{$fg_no_bold[magenta]%}%~%{$reset_color%}"

to have it display the current directory in magenta.

As an aside, one of the things I *hated* about a couple of linux
distributions was that they enabled colors for things by default. In
three differente places. Turning that stuff off was a major pain. I
can understand having it on by default, but I ought to be able to turn
it off by editing my .bashrc (or similar), without having to edit two
system files as well.

	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15971.32643.956142.390471>