Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!sunybcs!bingvaxu!leah!emb978 From: emb978@leah.Albany.Edu ( Eric M. Boehm) Newsgroups: comp.unix.wizards Subject: Re: How to have PS1 evaluated after each "cd" Message-ID: <551@leah.Albany.Edu> Date: 31 Dec 87 17:07:52 GMT References: <574@ambush.UUCP> <1876@netsys.UUCP> Organization: The University at Albany, Computer Services Center Lines: 17 Summary: Setting path in prompt in csh In article <1876@netsys.UUCP>, lee@netsys.UUCP (Lee Chen) writes: > > Not So Long Ago there was a discussion about how to have the present > working directory evaluated and displayed as part of the PS1 prompt. > Would anyone (or two :-) care to summarize on effective solutions to > this "problem" via ksh, csh, sh, *sh script or C ? I use the following in .cshrc to set current working directory in the prompt. alias cd 'set oldwd=$cwd; chdir \!*; set prompt="\! <$cwd>" ' set prompt=\! <$cwd>" is also in .login to set initial prompt. Eric M. Boehm EMB978@ALBNY1VX.BITNET EMB978@LEAH.ALBANY.EDU