Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!me!sun From: sun@me.utoronto.ca (Andy Sun Anu-guest) Newsgroups: comp.unix.questions Subject: Re: PROMPT Message-ID: <89Oct24.223607edt.19928@me.utoronto.ca> Date: 25 Oct 89 02:35:56 GMT References: <21262@adm.BRL.MIL> Organization: University of Toronto Mechanical Engineering Lines: 27 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 > > Add this alias entry to your .login or .cshrc: alias cd 'cd \!*; set prompt=$cwd"% "' I think it will do what you want. Andy -- _______________________________________________________________________________ Andy Sun | Internet: sun@me.utoronto.ca University of Toronto, Canada | UUCP : csri.toronto.edu!me.utoronto.ca!sun Dept. of Mechanical Engineering | BITNET : sun@me.utoronto.BITNET