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: "David A. Lyons" Subject: Re: Directory Prompt Date: 1996/05/14 Message-ID: <31984726.ABD@alf.dec.com>#1/1 X-Deja-AN: 154725748 references: <4lt1oa$294@random.tpgi.com.au> <4mgjpt$obj@northshore.shore.net> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; OSF1 T4.0 alpha) Martin Hannigan 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. > 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