Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc 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!news.maxwell.syr.edu!ott.istar!news.istar.net!tor.istar!east.istar!usenet.Hydro.ON.CA!ohrd!news From: Jim Service <jservice@pc-servicej.rd.hydro.on.ca> Subject: Re: Customizing csh Organization: "Ontario Hydro Technologies" Date: Thu, 8 May 97 20:24:55 GMT Message-ID: <ylurafh3e5s.fsf@pc-servicej.rd.hydro.on.ca> Lines: 35 X-Newsreader: Gnus v5.3/Emacs 19.34 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> Sender: news@rd.hydro.on.ca (News Account) Nntp-Posting-Host: pc-servicej.rd.hydro.on.ca Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40707 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:~> It is in the ports collection. -- James (Jim) R.R. Service Internet: jservice@oht.hydro.on.ca Ontario Hydro Technologies 800 Kipling Ave. - Room KR128 FAX: (416) 207-5623 Toronto, Ontario, CANADA M8Z 5S4 voice: (416) 207-6946