From owner-freebsd-questions Mon May 13 06:03:12 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA18579 for questions-outgoing; Mon, 13 May 1996 06:03:12 -0700 (PDT) Received: from sasami.jurai.net (sasami.jurai.net [205.218.122.51]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id GAA18572 for ; Mon, 13 May 1996 06:03:09 -0700 (PDT) Received: from localhost (winter@localhost) by sasami.jurai.net (8.7.4/8.7.3) with SMTP id IAA29965; Mon, 13 May 1996 08:02:21 -0500 (CDT) Date: Mon, 13 May 1996 08:02:20 -0500 (CDT) From: "Matthew N. Dodd" X-Sender: winter@sasami To: Michael Smith cc: Francisco.Reyes@i-2000.com, questions@freebsd.org Subject: Re: colored prompts in BASH In-Reply-To: <199605131022.TAA19304@genesis.atrad.adelaide.edu.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 13 May 1996, Michael Smith wrote: > Francisco Reyes stands accused of saying: > > At work there is one Linux computer and the bash shell there > > has color prompts for different types of files. I have FreeBSD > > at home and I would like to have colored prompts. > Grrr, terminology. They aren't "prompts". What you are seeing is the > Linux 'ls' command, which uses colour. This is available for FreeBSD in the > ports collection as 'linuxls'; 'colorls' is another variation on the same > thing. Well, I use colorls, and use the following with tcsh. set prompt="%{%}[%{%}%m%{%}]%{%}:%{%}%/%{%}> " if ("$term" == "xterm") then alias cwdcmd 'echo -n "]2;${HOST} : $cwd ";echo -n "]1;${HOST}"' cwdcmd endif Which is nice and pretty. Variations on this theme have resulted in a root prompt that turns your stomach. You won't want to stay root for long! Flashing yellow and pink! Fear! Its a bad Amiga/ANSI BBS! (and it lags a 2400bps modem! woohoo!) Evil! Evil! Bad! :) Have a good one. | Matthew N. Dodd | winter@jurai.net | http://www.jurai.net/~winter | | Technical Manager | mdodd@intersurf.net | http://www.intersurf.net | | InterSurf Online | "Welcome to the net Sir, would you like a handbasket?"|