From owner-freebsd-questions Mon Mar 3 8:15: 4 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C51B37B401 for ; Mon, 3 Mar 2003 08:15:02 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 7A99943FBF for ; Mon, 3 Mar 2003 08:15:01 -0800 (PST) (envelope-from mwm-dated-1047140100.219c32@mired.org) Received: (qmail 18397 invoked from network); 3 Mar 2003 16:15:00 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 3 Mar 2003 16:15:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15971.32643.956142.390471@guru.mired.org> Date: Mon, 3 Mar 2003 10:14:59 -0600 To: "Chris Phillips" Cc: "Matt Smith" , Subject: Re: xterm + colors just wont splice... 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> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.70 (Pensive) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In <006401c2e199$a54c4480$9501000a@hq.inty.net>, Chris Phillips 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. 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