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: ccksb@blaze.trentu.ca (Ken Brown) Subject: Re: Directory Prompt Date: 1996/05/09 Message-ID: #1/1 X-Deja-AN: 153943615 references: <4lt1oa$294@random.tpgi.com.au> organization: Trent University, Canada newsgroups: comp.unix.osf.osf1 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 > In ~/.cshrc; alias cd 'cd \!*;set prompt="! `hostname|cut -d. -f1`:$cwd:t> " ...will make the prompt show; hostname:current-dir> This takes effect after the first "cd" command, so you may want to put a "cd" in ~/.login.... -- ---------------------------------------------------------------------- Ken Brown / kbrown@trentu.ca / tel: (705)748-1540 / fax: (705)748-1635 ----------------------------------------------------------------------