Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!uakari.primate.wisc.edu!xanth!mcnc!rti!sunpix!matthew From: matthew@sunpix.UUCP ( Sun Visualization Products) Newsgroups: comp.unix.questions Subject: Re: PROMPT Message-ID: <961@friar-taac.UUCP> Date: 25 Oct 89 19:55:10 GMT References: <21262@adm.BRL.MIL> Reply-To: matthew@friar-taac.UUCP (Matthew Stier - Sun Visualization Products) Organization: Sun Microsystems, RTP, NC Lines: 28 In article <21262@adm.BRL.MIL> shahryar@sutro.sfsu.edu (Shahryar G. Hashemi) writes: |Hello there, | |I have a question about setting up my prompt in UNIX. In DOS you can a: |PROMPT $P$G |and it will automaticaly change my prompt when I change to a new directory. | |I would like to know how to do this same command in UNIX. I have tried |alias {but no good man pages}. Could someone out there please help me. | |Shahryar Ghazneini Hashemi | | Since you mention 'aliases' I'm assuming your working in csh. (I different between the shell on how to set the prompt. Your write about using alias. Try this (its off the cuff, but should work): alias cd 'cd \!*; set prompt = "${cwd}> "' -- Matthew Lee Stier | Sun Microsystems --- RTP, NC 27709-3447 | "Wisconsin Escapee" uucp: sun!mstier or mcnc!rti!sunpix!matthew | phone: (919) 469-8300 fax: (919) 460-8355 |