Newsgroups: comp.unix.aix
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!grasp1!rol
From: rol@grasp1.univ-lyon1.fr (Paul Rolland)
Subject: Re: How To: set PS1 to show users "current" directory?
Message-ID: <1991Apr17.144920.17478@grasp1.univ-lyon1.fr>
Date: Wed, 17 Apr 1991 14:49:20 GMT
References: <1599@msa3b.UUCP> <6657@awdprime.UUCP> <1991Apr16.093733.19362@ioe.lon.ac.uk>
Organization: INSA Departement Informatique, Lyon, France
Keywords: AIX

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.

 Paul Rolland, engineer [I hope :)] in July 91,
 Specialist of assembly on PC [Not too bad in fact :)],
 Trying to progress on Unix administration
 					   Email : rol@grasp1.univ-lyon1.fr 
