From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,552b7059e033056c X-Google-Attributes: gidfee84,public From: tom@finwds01.tu-graz.ac.at (Thomas Leitner) Subject: Re: Directory Prompt Date: 1996/05/06 Message-ID: <4mk5ec$ome@fstgal00.tu-graz.ac.at>#1/1 X-Deja-AN: 153240070 references: <4lt1oa$294@random.tpgi.com.au> <4mgjpt$obj@northshore.shore.net> organization: Graz University of Technology, Austria newsgroups: comp.unix.osf.osf1 Martin Hannigan (hannigan@shore.net) wrote: > In article <4lt1oa$294@random.tpgi.com.au>, > dhinkle 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