Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "David A. Lyons" <lyonsd@alf.dec.com>
Subject: Re: Directory Prompt
Date: 1996/05/14	[thread overview]
Message-ID: <31984726.ABD@alf.dec.com> (raw)
In-Reply-To: 4mgjpt$obj@northshore.shore.net


Martin Hannigan 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.
> 

realias the 'cd' builtin, like this (for example):

alias fp 'set prompt="[ ! ] ${USER}@${HOST}:${PWD}% "'
alias cd "cd \!*;fp"
alias pu "pushd \!*;fp"
alias po "popd \!*;fp"

--
David Lyons - Digital UNIX Support m/s ALF1-3/P27 / 1-800-354-9000
x75850
Digital Equipment Corporation
5555 Windward Parkway West
Alpharetta, GA 30201-7407      
lyonsd@alf.dec.com

"[Bill Clinton] has kept the promises he meant to keep."
     --GEORGE STEPHANOPOLOUS, CNN'S "LARRY KING LIVE," 
       2/15/96



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