From: tom@finwds01.tu-graz.ac.at (Thomas Leitner)
Subject: Re: Directory Prompt
Date: 1996/05/06 [thread overview]
Message-ID: <4mk5ec$ome@fstgal00.tu-graz.ac.at> (raw)
In-Reply-To: 4mgjpt$obj@northshore.shore.net
Martin Hannigan (hannigan@shore.net) wrote:
> In article <4lt1oa$294@random.tpgi.com.au>,
> dhinkle <dhinkle@tpgi.com.au> wrote:
> >Does anyone know how to make the c shell display the current directory
> >in the prompt, and change the prompt as you change directories.
> >
> >Digital Unix 3.2
> >
> >dhinkle@tpgi.com.au
>
> I think you have to use 'bash' to be able to accomplish that.
No. I got the following in my .cshrc file:
set promptu=`hostname|cut -d'.' -f1`"("\!")"
alias cd cd \!\* \;set prompt=\"\${promptu}\`echo \$cwd \| \
sed \'s\?${home}\?\~\?\' \`\>\ \"
Tom
--
Tom Leitner, tom@finwds01.tu-graz.ac.at |\ _,,,---,,_
Dept. of Communications zzz. /,`.-'`' -. ;-;;,_.
Graz University of Technology |,4- ) )-,_. ,\ ( `'-'
Inffeldgasse 12 '---''(_/--' `-'\_)
A-8010 Graz / Austria / Europe, Phone: +43-316-873-7455, Fax: +43-316-463-697
WWW home page: http://wiis.tu-graz.ac.at/people/tom.html
next prev parent reply other threads:[~1996-05-06 4:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-25 4:00 Directory Prompt dhinkle
1996-05-04 4:00 ` Martin Hannigan
1996-05-06 4:00 ` Timothy M. Wieman
[not found] ` <4mnec0$r34@gli <4mt0vt$4cu@csugrad.cs.vt.edu>
1996-05-10 4:00 ` John C. Fowler
1996-05-10 4:00 ` John P. Speno
1996-05-11 4:00 ` John Hascall
1996-05-06 4:00 ` Thomas Leitner [this message]
1996-05-07 4:00 ` Torsten Robert Kirschner
1996-05-07 4:00 ` Dan Pop
1996-05-07 4:00 ` Kevin MacNeil
1996-05-09 4:00 ` Jeff Aitken
1996-05-14 4:00 ` David A. Lyons
1996-05-09 4:00 ` Ken Brown
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox