Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ccksb@blaze.trentu.ca (Ken Brown)
Subject: Re: Directory Prompt
Date: 1996/05/09	[thread overview]
Message-ID: <Dr5FF0.8v8@blaze.trentu.ca> (raw)
In-Reply-To: 4lt1oa$294@random.tpgi.com.au


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
>

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
----------------------------------------------------------------------



      parent reply	other threads:[~1996-05-09  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
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 [this message]
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