Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!hpsal2!morrell From: morrell@hpsal2.HP.COM (Michael Morrell) Newsgroups: comp.unix.questions Subject: Re: Re^2: Getting UNIX prompt to display current directory Message-ID: <14660009@hpsal2.HP.COM> Date: 28 Mar 89 21:09:29 GMT References: <2205@solo1.cs.vu.nl> Organization: HP System Architecture Lab, Cupertino Lines: 15 / hpsal2:comp.unix.questions / lbn@ksuvax1.cis.ksu.edu (Lars Bo Nielsen) / 7:52 am Mar 27, 1989 / You are right. Here are the modified (quicker) versions: 2) Only name of current dir: alias cd 'cd \!*; set foo=$cwd; set prompt=$foo:t"% "' 3) Include name of machine in prompt alias cd 'cd \!*; set prompt=$host":"$cwd"% "' or alias cd 'cd \!*; set foo=$cwd; set prompt=$host":"$foo:t"% "' ---------- I don't think you need the extra variable foo. "set prompt=$cwd:t" works just fine. Michael