Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 1996 08:02:20 -0500 (CDT)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        Michael Smith <msmith@atrad.adelaide.edu.au>
Cc:        Francisco.Reyes@i-2000.com, questions@freebsd.org
Subject:   Re: colored prompts in BASH
Message-ID:  <Pine.BSI.3.93.960513075813.20273F-100000@sasami>
In-Reply-To: <199605131022.TAA19304@genesis.atrad.adelaide.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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?"|




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.93.960513075813.20273F-100000>