Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!daemon From: looi@sutro.SFSU.EDU (W. W. Looi) Newsgroups: comp.unix.aix Subject: Re: How To: set PS1 to show users "current" directory? Keywords: AIX Message-ID: Date: 18 Apr 91 02:38:36 GMT References: <6657@awdprime.UUCP> <1991Apr16.093733.19362@ioe.lon.ac.uk> <1991Apr17.144920.17478@grasp1.univ-lyon1.fr> Sender: daemon@linac.fnal.gov (The Background Man) Organization: San Francisco State University Lines: 21 Nntp-Posting-Host: sutro.sfsu.edu In article <1991Apr17.144920.17478@grasp1.univ-lyon1.fr> rol@grasp1.univ-lyon1.fr (Paul Rolland) writes: >In article <1991Apr16.093733.19362@ioe.lon.ac.uk> law@ioe.lon.ac.uk (Lindsay Wakeman) writes: >> >>In csh .login I use: >> >> cd >> alias cd 'cd \!*; set prompt="$cwd :"' >> > That works fine, but I'd like to have the working directory relative >to my HOME directory. That's is : my HOME is /u/rol. If I'm in /u/rol/tmp/c, >I'd like to have the prompt being tmp/c, or even better, HOME/tmp/c when I'm >in /u/rol/tmp/c and /u when I'm in /u... > How can I do that ? > > Paul. > I can deliver what you ask for if you can convince us the justification for relative directory instead of absolute directory... :-) ttfn - looi