*BSD News Article 95105


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!chippy.visi.com!news-out.visi.com!mr.net!news.netins.net!geoffrey
From: geoffrey@netins.net (geoffrey alexander)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Customizing csh
Date: Sun, 11 May 1997 02:02:41 -0500
Organization: The alt.movies.kubrick Newsgroup
Lines: 38
Message-ID: <geoffrey-ya023380001105970202410001@news.netins.net>
References: <01bc5725$24f3dfa0$64d91dce@phishhead.dawtech.com> <5kiqk3$kf9@uriah.heep.sax.de> <5kkcqt$2e5@news.mel.aone.net.au> <2rqlk5.it2.ln@dolphin.neosoft.com> <ylurafh3e5s.fsf@pc-servicej.rd.hydro.on.ca>
NNTP-Posting-Host: unin-01-08.dialup.netins.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Yet Another NewsWatcher 2.3.3
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40715

In article <ylurafh3e5s.fsf@pc-servicej.rd.hydro.on.ca>, Jim Service
<jservice@pc-servicej.rd.hydro.on.ca> wrote:

> conrads@neosoft.com (Conrad Sabatier) writes:
> 
> > 
> > In article <5kkcqt$2e5@news.mel.aone.net.au>,
> >       nigel@palms.nq.net (Nigel Gorry) writes:
> > > 
> > > "Chris Taylor" <cstaylor@dawtech.com> wrote:
> > >> I would like to see some examples of csh.cshrc, csh.login and .cshrc
files.
> > >>  For one, I would really like to know how to set the prompt to show the
> > >> current working directory, a problem that continues to allude me. 
Thanks.
> > > 
> > > alias cd 'chdir \!* && set prompt="${cwd}$ "'
> > > set prompt="${cwd}$ "
> > 
> > I like to include a `whoami`: at the beginning of the prompt, too, so I
> > don't have to guess if I'm conrads or "su"ed to root.
> > 
> > -- 
> > Conrad Sabatier
> > http://www.neosoft.com/~conrads
> > 
> 
> Why not use tcsh instead?  There is a lot of customization one can do with
> the prompt and have command line editing, too.
> 
> % set prompt='%T|%h(1)/@%M:%~%# '
> 16:22|94(1)/@pc-servicej:~>

I was a diehard tcsh fan myself until I found the joys of the zsh -- both
are in the ports and packages collection and there is a terrific zsh besite
as well, so you can try them both out.

Geoff Alexander